Add files to EXE
Could any one help me???
I just use Windows programming with OpenGL...I had never touch on it before!!
I wanted to know (if possible), how can I add files to the EXE...For example:
I have a program that show a BMP on textured quad...But I only want to distribuit
the EXE!! Can I attach the file to the EXE?? How?? Maybe like an resource??
PS.: I use VC++6...
Thanks by the help!!
Keep the good work guys...
BY BassX
Yeah, you can use ressource
-Add a ressource Script to your project
-Add your file to the script and give it a name (like IDB_BITMAP)
-Instead of loading ".\data.bmp", load IDB_BITMAP
But, you should not put a lot of files in your bitmap, I think you should use a .pak or a .zip or any kind of data container
then, make your program load it and get textures from it
(Use JPG or TGA instead of bitmaps)
-Add a ressource Script to your project
-Add your file to the script and give it a name (like IDB_BITMAP)
-Instead of loading ".\data.bmp", load IDB_BITMAP
But, you should not put a lot of files in your bitmap, I think you should use a .pak or a .zip or any kind of data container
then, make your program load it and get textures from it
(Use JPG or TGA instead of bitmaps)
(you can find me on IRC : #opengl on undernet)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement