Groups | Blog | Home
all groups > visual c > december 2003 >

visual c : WinMain ???



red floyd
12/12/2003 8:50:50 AM
[quoted text, click to view]

Console apps get "int main(int, char *[])";
Win32 GUI Apps get "int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPTSTR, int)"
Lloyd Dupont
12/12/2003 3:14:41 PM
I don't understand !!!!!!

Sometimes VS.NET seems to compile fine with a "int main(int, char*)"
function
sometimes not...

worst recently I had a project which (for some reasons) didn't like "main()"
startup function and, copying from a similar project, I use the following
entry point:

int APIENTRY _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int);

It works fine for a while then I played a bit with the project property
(just adding a new library and header include path and a new library) and
suddenly the project didn't link any longer complaining WinMain@16 is
missing !

what the hell is that !!??!!

Lloyd Dupont
12/13/2003 8:10:01 PM
thanks, I found it !

"red floyd" <no.spam@here.dude> a écrit dans le message de
news:OeT$XANwDHA.1908@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button