Hello monks. I was hoping you could assisst me in accessing a DLL file. I don;t need to update the DLL I only need to be able to read a bunch of text values out of the DLL into a hash. When I open the DLL in file in ResHacker I see the resources I need under numbered folders under the main folder called String Table. Inside each of the numbered sub folders is what I believe is a resource and the data within that resource looks some thing like this:
STRINGTABLE
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
1, "foo"
2, "faz"
3, "far"
4, "bar"
5, "baz"
6, "boo"
7, "abc"
8, "def"
9, "ghi"
10, "jkl"
11, "mno"
12, "pqr"
13, "stu"
14, "vwx"
15, "yz1"
}
I need to pull that data out and make it into key/value pairs in a hash. And then move down to the next numbered folder and do the same. Any suggestions on the best way to do this? I took a look at Win32::API, but I have no idea how to use it or if it is even what I need for this.
Thanks!
-Prime
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.