flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
pelaillo 13 Nov 2003, 10:13
Hi alonso,
You need to locate and load your resources using: Code: invoke FindResource,[hInstance],01,RT_RCDATA invoke LoadResource,[hInstance],eax mov [hData01],eax Your data will be in global memory pointed by hData01. |
|||
![]() |
|
Vortex 13 Nov 2003, 10:20
Alonso,
You can use also the FILE directive to include text and misc. data in your program. _________________ Code it... That's all... |
|||
![]() |
|
alonso 13 Nov 2003, 13:20
Pelaillo I tried your code and it worked just fine but it does NOT need the FindResource function since the name you type after fileres contains the handle to the specified resource’s info block (the same returned by FindResource function).
invoke LoadResource, NULL,[MyText] invoke LockResource, eax mov [hGlobal],eax ; Pointer to where the data starts invoke SizeofResource, NULL,[MyText] mov [dwFileSize], eax ; EAX contains the file size in bytes section '.rsrc' resource data readable directory RT_RCDATA, files resource files,\ 01, LANG_NEUTRAL, MyText,\ 02, LANG_NEUTRAL, MiscData fileres MyText, 'MyText.txt' fileres MiscData, 'mar y isla.jpg' THANKS TO EVERY BODY!! ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.