delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/22/07:27:22

From: ninja AT aerohel DOT snu DOT ac DOT kr (Chun, Sung Jin)
Subject: [Q] How to get argc, argv, environ variable in Win32
22 Jul 1998 07:27:22 -0700 :
Message-ID: <000601bdb536$095d1ac0$92752e93.cygnus.gnu-win32@aeromdo2.snu.ac.kr>
Reply-To: "Chun, Sung Jin" <ninja AT aerohel DOT snu DOT ac DOT kr>
To: "GNU-Win32" <gnu-win32 AT cygnus DOT com>

In WinMain function, there's no argc, argv, and environ
variable.
I found that there's global variable
extern int __argc;
extern char** __argv;
extern char** _environ;
But this does not work. For example, __argc is
100XXX like number when I print it from WinMain.
How can I get this individually in WinMain ?

Thanks in advance and Please reply me via e-mail.

******************************************

I like N*Step's beauty, but Iove Freedom.

ninja AT aerohel DOT snu DOT ac DOT kr

---ObjC---
NSString* NSMyName = @"Chun, sungjin";
[ NSMyName fly ];
---ObjC---

******************************************


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019