two words...
bite me.
help with directx
At first glance, whenever you call DDReLoadBitmap() you ask it to open "BACK", since your resource file has no mention of a "BACK" identifier I''m guessing you dont have an image whose filename is "BACK" in the program''s directory.
Also, next time you dont have to show ALL of your code. Preferably you should only the function that is giving you problems.
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
Also, next time you dont have to show ALL of your code. Preferably you should only the function that is giving you problems.
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
your right, i had completely forgotten about the picture. but, how do i use a bmp file? or am i not supposed to?
oops...
To use the image, pass the file name to DDLoadBitmap() which will load the bitmap for you to an offscreen surface. DDReLoadBitmap() copies the bitmap to a surface you specify.
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
nope. make a bmp, then change the name to "BACK" without the ".bmp" it should work. or just change the szBackGround="BACK" to your filename.
well, it''s loading the file fine. but when it tries to load it into the back buffer, that''s when it crashes. i think it''s an error the programmer made. i don''t think g_pDDSBack is ever changed from NULL, so it''s always returning an error.
oops...
Which part is returning the error?
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
here''s where the error is returned, the function is in ddutil.cpp
// Load a bitmap into the back buffer. hRet = DDReLoadBitmap(g_pDDSBack, szBackground); if (hRet != DD_OK) return InitFail(hWnd, hRet, "DDReLoadBitmap FAILED");
oops...
What is the value of hRet?
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement