When I created my Win32 Application workspace, there was already a .cpp file created (Visual Studio 6) which had this function already in it:
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
}
Everything I've read uses:
int main(<arguments>)
{
}
When I removed the WinMain declaration and used int main, I got an "Invalid entrypoint" error during compile.
I looked under:
Project>Settings>Link>Output
and saw a field titled: Entry-point symbol which had WinMain in it. I replaced it with main and it still gave me errors...
Could someone give me some steps to setting up an empty workspace? I seem to get different settings every time I create a new Win32 Application. I really have no idea what all the different options do under Project>Settings....
Perhaps someone could recommend a book geared towards the Visual Studio compiler... doesn't have to be an advanced book, I'm still learning the basics.
Thanks.