flat assembler
Message board for the users of flat assembler.
Index
> Windows > FASM Resource types |
Author |
|
pearlz 10 Aug 2010, 20:38
it's can be RT_RCDATA for use it, you can FindResource then LoadResource ..etc..
|
|||
10 Aug 2010, 20:38 |
|
LocoDelAssembly 10 Aug 2010, 20:52
Or just:
Code: ; Part of your code where you hold data the_mp3_file: file 'TheFile.mp3' |
|||
10 Aug 2010, 20:52 |
|
typedef 10 Aug 2010, 21:15
@LocoDel...how do i load it afterwards... i dont know its ID but name
|
|||
10 Aug 2010, 21:15 |
|
LocoDelAssembly 10 Aug 2010, 21:22
It is loaded already, doing "mov eax, [the_mp3_file]" will make EAX == <"ID3", 3> (or whatever the file signature is). Think of it as a byte array already pre-initialized with the file contents.
[edit]BTW, perhaps you'll need to know the size so use this instead: Code: ; Part of your code where you hold data the_mp3_file: file 'TheFile.mp3' sizeof.the_mp3_file = $ - the_mp3_file ; Now you can know the size of this "byte array" with "sizeof.the_mp3_file" |
|||
10 Aug 2010, 21:22 |
|
typedef 10 Aug 2010, 21:30
ok thanks
|
|||
10 Aug 2010, 21:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.