I'm a big moron.
I added that code in, still didn't work. I double-checked that Background.bmp was in my "\Game2" folder. Still didn't work. I messed around with the parameters. Still nothing. Looked back in my "\Game2" folder...turns out there's a "\Game2\Game2\" folder where the program's actually running out of
Thanks a lot for the help Ken, it's much appreciated. Just a quick question, in this code:
Code:
wcx.hbrBackground=CreatePatternBrush((HBITMAP) LoadImage(0,_T("background.bmp"),
IMAGE_BITMAP,0,0,
LR_CREATEDIBSECTION|LR_LOADFROMFILE));
What's the purpose of the "_T"? I did the whole "Right Click"->"Go To Definition" and followed it down into tchar.h....but still...
/* Generic text macros to be used with string literals and character constants.
Will also allow symbolic constants that resolve to same. */
#define _T(x) __T(x)
#define __T(x) L ## x
Doesn't quite clear it up for me. It seems that it's just a safe way to pass a string as a parameter?
I tried it without the _T:
Code:
HBITMAP)(LoadImage(0, "Background.bmp", IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION|LR_LOADFROMFILE));
And found that it still works. So just out of plain curiosity, what does it do?
Thanks again for the help.
Have you tried novacain - very helpful for coding problems, too.
No doubt The Tylenol 3s they prescribed should help about the same amount. I haven't taken any yet, but if I do, I'll make sure the first thing I do is write a stunning program.