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