July 22, 2004 __argv and __argc in DMC | ||||
---|---|---|---|---|
| ||||
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 Re: __argv and __argc in DMC | ||||
---|---|---|---|---|
| ||||
Posted in reply to Peter Thun | 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
|
Copyright © 1999-2021 by the D Language Foundation