Newb question

Started by
13 comments, last by addicted2cheese 21 years, 5 months ago
I would use the Borland C++ files and do the following:

1. declare CDS_FULLSCREEN like Enigma said
2. change WinMain to int Winmain
3. add a return 0 at the end of Winmain
Advertisement
I would use the Borland C++ files and do the following:

1. declare CDS_FULLSCREEN like Enigma said
2. change WinMain to int Winmain
3. add a return 0 at the end of Winmain
Ok

1)I typed "#define CDS_FULLSCREEN 0x00000004" at the beginning of the code and this seems to have worked, thanks .

2&3)This is what i have done to this part of code to
}
WINAPI int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
return 0;
{
it got rid of the other error, but now its telling me there is a "Parse error before ''0''"on the ''return -;'' line This is the only error left other then:
339 lesson01.cpp
confused by earlier errors, bailing out

Thanks for your time
That''s because it should look like this:

WINAPI int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){return 0;} 
Hoorah! i think its working now

Thanks guys

This topic is closed to new replies.

Advertisement