I've written my program entirely and, rather than putting the thing in a ZIP, I'd like to embed the two resources (a shader and an image) into the executable. I know it's possible, but I don't know how to do it. I'm using Visual C++ 2010, does anyone know how to do it with this?
I'm looking to do a similar thing. I'm working in VS Pro 2008, however I am painfully unfamiliar with it.
I am looking to take a foreign exe, and some associated control files, write the exe to disk (a tempfile), and run it(with a control file generated by my program).
I have GCC code that does the job (array of hardcoded int16's-> chars ->file), but it fails to link (in VC++) when I go with a 400K file, a 60 byte file works great. It's an ugly hack of a way to get it done.
What is the best way to store files inisde an executable to be written to disk? With the assumption that I've never seen a resource script before. In googling I've found plenty on how to write a resource, but doesn't seem to apply to my situation.
I've found a way to do this in c# but that does me no good, i think.
I have to have my project as a standalone exe file for distribution, no installer.
my alternative is a .cpp file that does 200k vector push_backs -- ala outFileData.push_back(0x7fea); Which just stinks of bad design.
Anyway any direction would be greatly appreciated.