home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / win32 / 3151 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  810 b 

  1. Path: sparky!uunet!portal!nntp1.radiomail.net!cronos!bombay!sanzgiri
  2. From: sanzgiri@bombay.metaphor.com (Ajit Sanzgiri)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: How to find name of app ?
  5. Message-ID: <2770@cronos.metaphor.com>
  6. Date: 29 Jan 93 01:29:30 GMT
  7. Sender: news@cronos.metaphor.com
  8. Organization: Metaphor Computer Systems, Mountain View, CA
  9. Lines: 11
  10. Originator: sanzgiri@bombay
  11.  
  12.  
  13.     How does one programmatically find the name of the application
  14.     running the currently executing code ? In UNIX this info is
  15.     contained in argv[0]. In Windows the corresponding arg to WinMain
  16.     (lpCmdLine) does not contain the program name. Is it available some
  17.     other way ?
  18.  
  19.     My Win16 programming guide speaks about externals called _argc and
  20.     _argv. These don't seem to exist under Win32.
  21.  
  22.     -ajit sanzgiri
  23.