From the Win32 API reference (as supplied by Microsoft):
int WINAPI WinMain(
HINSTANCE hInstance, // handle to current instance
HINSTANCE hPrevInstance, // handle to previous instance
LPSTR lpCmdLine, // pointer to command line
int nCmdShow // show state of window
);
lpCmdLine
Points to a null-terminated string specifying the command line for the application.
You're not getting it as a nice array of commandline arguments but you are getting it.
Full helpfile is available here:
http://www.borland.com/devsupport/bo...s/BC52HLP1.ZIP (it's a Microsoft file supplied by Borland including complete search index).
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004