Ok Thanks Dear Pete,
But in VC++ I believe that we can't use as you show:
void main( char* argv[], int argc){
printf("arg0: %s\r\n", argv[0]);
}
But the program works only with the standard WinMain:
int WINAPI WinMain( HINSTANCE hInstance, // Instance
HINSTANCE hPrevInstance, // Previous Instance
LPSTR lpCmdLine, // Command Line Parameters
int nCmdShow) // Window Show State
And it always doesn't give me the parameters argv and argc, as I need.
Kind regards,
Adasilva
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.