Embedding binary files within compiled EXE Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Embedding binary files within compiled EXE

Post by protocol »

Does anyone know of a way to embed a generic binary file ( word doc, windows exe, wav file, mp3, etc) inside an executable? And then access/referencing it without extracting it from the exe during runtime?

Thanks in advance.

Any other code problems I seem to smash without reprisal.

This is my first post but I am definitely going to go through as many post as I can to help others.

I love wxWidgets!!
metalogic
Super wx Problem Solver
Super wx Problem Solver
Posts: 307
Joined: Fri Oct 08, 2004 8:21 am
Location: Area 51
Contact:

Post by metalogic »

protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Thanks

Post by protocol »

I believe it may help, luckily I am developing for a Win32 environment. I will try accessing it as a resource.

Thanks again, but I still need it to build as a single executable (assuming that the module is an external resource).
cpp
I live to help wx-kind
I live to help wx-kind
Posts: 195
Joined: Wed Sep 28, 2005 9:42 pm

Post by cpp »

Actually, the code changes sugested in that topic, are (only) to allow loading catalog files from resources.
I suggest you Download wxMSWResources class at wxCode, it was designed specifically for this.
http://wxcode.sourceforge.net/complist.php
read more about it here http://forums.wxwidgets.org/viewtopic.php?t=5492

HTH
Hier Kommt die Sonne...
protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

truly appreciated

Post by protocol »

Thanks for the link, I totally forgot about checking wxCode.

And even though the previous suggestion was geard towards catalog files, the conceptual aspect gave me more ideas and approaches.

Thank you very much.
Post Reply