Getting string text with string id from a DLL (#messagesFromDLL:index)

47 views
Skip to first unread message

Alex Greber

unread,
Apr 2, 2012, 10:30:27 AM4/2/12
to va-sma...@googlegroups.com

hi

I have a DLL and want to get out some messages with the string id.
OS: Windows7.
 
e.g.
DLL: tzres.dll
string id: 322
 
 

I cant' figure it out how to user #messagesFromDLL:index: to get the message.

any hints?
regards ... alex

Marten Feldtmann

unread,
Apr 2, 2012, 12:22:11 PM4/2/12
to va-sma...@googlegroups.com
| aDictionary |

aDictionary := Dictionary new.
aDictionary
 at: 'someName' put: 322 .

RCConverter new messagesFromDLL: 'tzres.dll' index: aDictionary
.

(aDictionary at: 'someName') asString -> 'Mitteleuropäische Zeit'

Alex Greber

unread,
Apr 3, 2012, 2:41:39 AM4/3/12
to va-sma...@googlegroups.com
Thanks Marten!
 
With this little change it worked for me:
 
| aDictionary |
aDictionary := Dictionary new.
aDictionary
 at: 'someName' put: 321 .
aDictionary := RCConverter new messagesFromDLL: 'tzres.dll' index: aDictionary.
(aDictionary at: 'someName') asString
 
Reply all
Reply to author
Forward
0 new messages