RE: ProgDir()

"Keuchel, Rainer" <keuchel-ypdxL0zNX99Wk0Htik3J/[email protected]> Thu, 28 Apr 2005 11:48:46 +0200
Newsgroups gmane.comp.windows.ce.freeware
Message-ID <7252F381626D5A469006C7A8157EAEAC012F39A1@achb_email.allgeier.net>
> Is it somehow possible to detect the executables path ?

GetModuleFileName(NULL, ...) gets the path/filename of the executable.

> Can I pass command line arguments to a program ?
> Like "myprog myarg1". I start my program with CreateProcess
> from another program, and there seems to be an option for that.

Yes, this works..



------------------------------------
Visit us at : www.allgeier.com