The code in that area:
hFile= OpenFile(mainbg_file, &ofs, OF_READ);
if (((int)hFile == 0) | ((int)hFile == -1)){
if (MessageBox((HWND)NULL, (LPCSTR)"Error: The background image file was not found. \r\n\r\nContinue without loading background? ",
(LPCSTR)ApplicationName,
(UINT)MB_YESNO) == IDYES){
use_mainbg= false;
} else {
return 1;
}
} else {
a= GetBitmapW(hFile);
b= GetBitmapH(hFile);
CloseHandle(hFile);
}
The compiler said this:
hFile= OpenFile(mainbg_file, &ofs, OF_READ); ^ main.cpp(63) : Error: need explicit cast to convert from: int __import to : void * --- errorlevel 1
Here are some variables, if that helps:
char mainbg_file[]= "mainbg.bmp"; OFSTRUCT ofs; HANDLE hFile;
I don't know what my compiler is talking about; anyone understand what's going on?


Sign In
Create Account


Back to top









