flat assembler
Message board for the users of flat assembler.

Index > Windows > Resource files?

Author
Thread Post new topic Reply to topic
dzruptz



Joined: 01 Jun 2010
Posts: 2
dzruptz
How can I include resource files in my final executable and be able to use them with the windows api? (LoadResource, FindResource etc)

Thanks Razz
Post 06 Jun 2010, 03:55
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Have you checked this? http://flatassembler.net/docs.php?article=win32#1.6

Note that the minipad example (included in fasm for windows package) includes an icon from file.

Also, in http://flatassembler.net/examples.php the Quetannon example includes a bitmap inside the executable.

There are probably more examples in this forum, but can't search them now.
Post 06 Jun 2010, 04:40
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler
I don't know anything about resource files, but a forum search of "resource AND file"(w/o quotation marks) looks promising.
Post 06 Jun 2010, 06:01
View user's profile Send private message Reply with quote
dzruptz



Joined: 01 Jun 2010
Posts: 2
dzruptz
Hi guys! Sorry for the trouble...here's what I found working:

Code:
section '.rsrc' data readable resource from 'myRes.res'    


where myRes.res is a resource i compiled with windres.

thanks!
Post 06 Jun 2010, 06:53
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler
dzruptz wrote:

Sorry for the trouble

No trouble.

I'd tried to learn to write resource files before, but they got irritating and I don't do GUI anyway, so I gave up. I'll look into "windres", is it free(as in beer) or open source?
Post 06 Jun 2010, 08:14
View user's profile Send private message Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1605
Location: Ukraine
shoorick
you can try to use ResEdit or ResEd to build rc-files in GUI, WinAsm Studio or RadAsm with embedded resource editing (ResEd is part of RadAsm), and use rc->fasm converters: this for ResEd and this for WinAsm Studio and ResEdit - the last converter converts only dialogs (i see no great sense in creation string resources in GUI editor, as well as writing then large code to process them). all these tools are free, ResEdit requires PSDK or Visual Studio installed (uses its includes)

regards!
Post 07 Jun 2010, 05:34
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.