I am trying to load a bitmap but I am confused where it is suppose to be.. in normal PC programming you put it in the directory of where the compiled program is. But that does not seem to happen with the pocketPC.. or must I manually copy the BMP files to the /start menu folder on the PPC?
anyways here is the line it is failing at
I have put 'space8.bmp' (which is the szFileName) everywhere yet it still gives me that error. any ideas?
where are the docs for Createfile found anyways..
anyways here is the line it is failing at
- Code:
//open the file
hFile = CreateFile(szFileName, GENERIC_READ, FILE_SHARE_READ, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (hFile == INVALID_HANDLE_VALUE)
{
return FALSE;
}
I have put 'space8.bmp' (which is the szFileName) everywhere yet it still gives me that error. any ideas?
where are the docs for Createfile found anyways..