   Loading Image into Directx 9  HELP
  Okay, I'm having serious problems loading an image into Direct3D 9...//Create the logo on the off-screen surfaced3dDevice->CreateOffscreenPlainSurface(500, 700,//Width and Height of the surface, in that orderD3DFMT_X8R8G8B8,//32-Bit surface, no alphaD3DPOOL_DEFAULT,//Default Memory Pool&surface,//Pointer used to reference SurafceNULL);//ALWAYS NULL!!!TCHAR * fileName = L"logo.bmp";//Load the logo image onto the surfaceD3DXLoadSurfaceFromFile(backBuffer,NULL,NULL,fileName,NULL,D3DX_DEFAULT,0,NULL);Just for clarification, I don't know if it's typical, but when I include my typical headers (Windows.h, windowsX.h, d3d9.h, etc.) my compiler automatically assumes the Wide-Character sets for all functions supporting them, meaning the TCHAR variable (Or LPCWSTR, the equivalent)...  Anyway, my program compiles and runs.. It just doesn't open the logo image.I know my Surface is created correctly, because if I replace the D3DXLoadSurfaceFromFile() method with ColorFill(), then StretchRect it the same way, the surface is applied correctly...  I'm just at a total loss.BTW, I'm using Visual Studio 2010 Ultimate Edition (legal copy through college, so I know it's not some error from being pirated... lol)A MAJOR thanks to anyone who can help.And then   
D3DXLoadSurfaceFromFile(backBuffer,NULL,NULL,fileName,NULL,D3DX_DEFAULT,0,NULL);You are loading your image into your backbuffer. :) Not into your previously created surface... And I think the Backbuffer gets cleared every frame.   ;  Actually, I was in the middle of trying to load it to the back-buffer directly that go around.  Didn't realize I had it in mid-change when I pasted. ^_^BTW, the back-buffer only clears (as far as I know) if you use the Clear() method to do so.BTW, I solved this problem and ran into another....When I Build the solution, then go into the debug folder and run the app, it loads up the image...  But... whenever I try to debug in within the Visual C++ Compiler... it won't open.  What directory do my files need to be in to be read within the compiler?   ;  If you run it inside the IDE the working directory is the folder where the solution is in.   ;  You can set the working directory in the "debugging" section in the project properties.   