   VC++ 6 Resources
  Hello,Im trying to run a simple Opengl program that just texture maps a bitmap on to a 2d square. I was wondering how I can make it so that the bitmap is included in the exe. The program runs fine when the bmp is in the same folder but I want to add it to the exe instead. I put it into the Resource folder but I dont think that did it... Any help is appreciated.-Player_0 
I have not tried this myself so am not definite this will work but I noticed an ''external file'' option when looking at a bitmap''s property page.  Maybe unticking this will compile it into the EXE file.Good luck and I hope this helps. ;  Create a new resource script file (.rc) in your project.  There should now be 3 tabs in your project, ClassView, ResourceView, and FileView.  Right click somewhere in that pane and choose the option Import.  Choose All Files in the file selection dialog and navigate to your bitmap file.  Click OK, and now you should have a new bitmap resource in your resource script.  If the bitmap has more than 256 colors, MSVC will not be able to display it when you double-click it, but it will still be loaded correctly by your program.  To load it into your program, create a bitmap handle as follows:HBITMAP hMyBitmap = (HBITMAP)LoadImage(hInstance,// HINSTANCE from WinMain    MAKEINTRESOURCE(IDB_BITMAP1),// The IDB_whatever string is the ID of the resource, make sure to use the MAKINTRESOURCE macro    IMAGE_BITMAP,    0, 0,    0);  Then you can do whatever with the bitmap handle, although it might take a little more work to convert it into an OpenGL-friendly format. ;  Thanks a lot, it worked. 