Original Post
I have been using .bmp in my game to this point. Since this is a small game (only about 10 textures) I decieded to include everything as resources, so I could have a tight packed .exe.
Jpegs have much better compression so I decieded to swtitch.
This an example of trying to load just one jpeg:
HGLOBAL hResource=LoadResource(g_hInst,FindResource(g_hInst,MAKEINTRESOURCE(TEXTURE_MENU),"JPEG")); LPTSTR res= (LPTSTR) LockResource(hResource); D3DXCreateTextureFromFileEx( g_pD3Device, res, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, D3DX_FILTER_TRIANGLE, 0, NULL,//color key for transparent textures NULL, NULL, &ptMenu);Here is this texture in my .rc TEXTURE_MENU JPEG menu.jpg and in my resouce header: #define TEXTURE_MENU 500 The game compiles and runs but when it comes time to load it crashes could you please help me this is my first time working with custome resources. I am just trying to follow Jim Adams book and piece together the rest, the search is down or I wouldn't have posted this [edited by - dapeos on April 1, 2004 2:23:00 AM]