Skip to main content
gamedev.net
🔒 Locked

Quick easy question!

Started by Darkwing55 Sep 16, 2000 at 6:50 PM 2 replies 150+ views
Original Post
Darkwing55
Darkwing55
I''m getting a linker error saying that _WinMain@16 hasn''t been defined does anyone know what .h file this definition is in???
Syzygy
Syzygy
If you''re writing a windows app, you have to write WinMain. It''s the equivalent of "main()" for a standard C console app. Take a look at any of the DDraw tutorials for an example. If you don''t want a windows app, then you made a mistake using the VC wizard, and chose "Windows App" instead of "Console App".

...Syzygy
MatsG
MatsG
change your main function to WinnMain

example:

change
int main(int argc,char *argv[])
{
}

to

int WINAPI WinMain(HINSTANCE hinst,HINSTANCE hprev,LPSTR CmdLine,int nShow)
{

}

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.