flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
bcdsys 26 Oct 2008, 13:14
What is c version of fasm "file" directive? I need to include some raw binary data generated by fasm in c program, how do I do that?
|
|||
![]() |
|
lsa 01 Feb 2009, 10:00
So, have you found a macro to do this?
I have had these problems when writing CGI programs in C (to include HTML). An alternative is to use a fasm written object file (which uses 'file') and then link it to your C program. |
|||
![]() |
|
vid 01 Feb 2009, 11:53
Properly you should use resources i quess. If you really want to do it, just make a FASM object file which uses "file" and then link it to C app.
|
|||
![]() |
|
f0dder 02 Feb 2009, 16:09
There's no way to do it directly in C.
Either you use a bin2h program and include the .h files, or you use a bin2obj program (or a small f.asm using "file") and link with that. PE Resources is another possibility, but (in this example) more complex for no good reason. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.