What's wrong with my using argc/argv this way in c?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-05-02T10:48:37Z Indexed on 2010/05/02 10:57 UTC
Read the original article Hit count: 145

Filed under:
|
|

This works:

int main( int argc, char *argv[])
{
....
gtk_init(&argc, &argv);
....

But this doesn't:

int WINAPI WinMain (HINSTANCE p1, HINSTANCE p2, LPSTR argv, int argc) { 
....
gtk_init(&argc, &argv);
....

Can someone point out what's wrong there?

© Stack Overflow or respective owner

Related posts about c

    Related posts about winmain