how to embedded some text files??

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Experienced Solver
Experienced Solver
Posts: 88
Joined: Tue Feb 28, 2006 9:03 pm

how to embedded some text files??

Post by idhan » Fri Jan 18, 2008 2:55 pm


I know how is embedded images files as wxxrc resources, but I can't find the way to do the same with simply text files.

Any idea???

thanks in advance.

Knows some wx things
Knows some wx things
Posts: 25
Joined: Sun Aug 05, 2007 9:47 pm

Post by exosyst » Sat Jan 19, 2008 1:54 pm

Seeing as the tech notes describe the wxRC file as a zip file would it be worth just creating your text file, putting it into the wxrc file by adding it to the zip?

Read up on wxXmlResource to see if it can do what you really need but the help specifies:
This is the main class for interacting with the XML-based resource system.

The class holds XML resources from one or more .xml files, binary files or zip archive files.
So there should be no reason you can't do it with that.
It requires further reading but maybe it's your best bet.


Post Reply