(Programmer Flare) S.O.S .
I have a game that is about 80 percent complete .(In my mind anyway). And I would like to share it, get feedback yada yada yada. but I have just one small problem.
I CANT GET THE BITMAPS TO INCLUDE THEMSELVES IN THE EXE!!!!!
(half hour later)....now that i have calmed down. Let me explain. I am using MVS C++ 6.0 All I want to do is use the automated function of the Resouce compiler and add my resources.
Can some one who knows how to do this break it down for me? If you dont know how to do it. Then if you at least know how to code the bitmap into the resource file that would be just as good.
I know how to code the wavs in and all that but I cant do the bitmaps. Or maybe there is a utility that I dont know about that exsists like rc.exe which my OS doesnt seem to have
before you start tripping, I did the following:
1. Add new rc file
2. Click insert
3. Click add resources
4. added resources
5. compiled code
6. built exe
Its funny you know because the exe was larger as if they were added but the exe still needed to be in the folder with the bitmaps. and I saw a file (only once and cant remeber the name of it) but it showed the resources and used the word "Discardable" in between them... what gives?......I belive its a parameter that I have checked somewhere or something im doing wrong. But damnt its killing me!!!!
Help......Thanks
a_insomniac
If my compiler was voice activated with the voice of my mother-in-law....there would be no errors!
----------
you are usign the Resource functions to load the bitmap right ? Would be somehow stupid to use normal file functions. I means you can''t expect from Windows that the image gets out of your exe file in some magical way... There are lots of documented re´source funtions in the MSDN lib
Tim
--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim
--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
I guess Im confused then ...I thougnt that you had two options:
OPTION 1
1. Create your own .rc file and resource.h file
2. Inside your code specify that the object is part of
a resource script.
example:
winclass.hIcon = LoadIcon(hinstance, MAKEINTRESOURCE(ICON_SMILE))
or OPTION 2 (which I thought you could do)
1. Select a new resource script and add to project
2. Insert all the resources.
3. At which time a resource.h file is generated
4. The rc file was created by you inserting resources
5. Compile Code
6. Build exe
I could have swore that I read some where that Microsofts Visual Studios allows you to automatically generate these files and all resources would be added to the exe automatically.
I could be wrong...have been before and will again.
but if you have an example of how to write the function for the bitmap, using the rc functions that would be cool. email it to me or post it.
I looked it up on MSDN lib and only found
( RC_BITMAP64
A raster capabilities flag that indicates the device can support bitmaps larger than 64K. ) and
(RC_DI_BITMAP
A raster capabilities flag that indicates the device supports setDIBits and getDIBits Windows functions.)
umm no help there.
a_insomniac
If my compiler was voice activated with the voice of my mother-in-law....there would be no errors!
OPTION 1
1. Create your own .rc file and resource.h file
2. Inside your code specify that the object is part of
a resource script.
example:
winclass.hIcon = LoadIcon(hinstance, MAKEINTRESOURCE(ICON_SMILE))
or OPTION 2 (which I thought you could do)
1. Select a new resource script and add to project
2. Insert all the resources.
3. At which time a resource.h file is generated
4. The rc file was created by you inserting resources
5. Compile Code
6. Build exe
I could have swore that I read some where that Microsofts Visual Studios allows you to automatically generate these files and all resources would be added to the exe automatically.
I could be wrong...have been before and will again.
but if you have an example of how to write the function for the bitmap, using the rc functions that would be cool. email it to me or post it.
I looked it up on MSDN lib and only found
( RC_BITMAP64
A raster capabilities flag that indicates the device can support bitmaps larger than 64K. ) and
(RC_DI_BITMAP
A raster capabilities flag that indicates the device supports setDIBits and getDIBits Windows functions.)
umm no help there.
a_insomniac
If my compiler was voice activated with the voice of my mother-in-law....there would be no errors!
----------
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement