July 22, 2004
Hi.

Some windows compilers like Visual C++ and MinGW offer __argv and __argc to access the command line arguments in "WinMain-applications".

I tried this on DMC but I get an "undefined identifier" error.

But after this I looked in tchar.h and found:

#define __targv		__argv
#define __targv		__wargv

Hmmm, did they forgot to delete this from the header-file or is there a possibility to use it?
July 22, 2004
Peter Thun wrote:
> Hi.
> 
> Some windows compilers like Visual C++ and MinGW offer __argv and __argc to access the command line arguments in "WinMain-applications".
> 
> I tried this on DMC but I get an "undefined identifier" error.
> 
> But after this I looked in tchar.h and found:
> 
> #define __targv        __argv
> #define __targv        __wargv
> 
> Hmmm, did they forgot to delete this from the header-file or is there a possibility to use it?

Oh sorry. Problem solved. I forgot to include windows.h. I didn't knew that this is required. :-)

cya