Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having a pointer for the commandline... 1

Status
Not open for further replies.

XPPROGRAMMER

Programmer
Nov 15, 2004
44
US
Hello,

when programming windows applications, why is it important
to obtain a pointer to the CommandLine -- before you
register the class for the graphical window?

thanks for the help.

 
I'm not sure what you mean. Can you post some code from your WinMain function?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Hello,

I am programming windows-based appilcations and using
microfocus Net Express COBOL compiler. The call to the
win32 function "WinMain" would pass to my application
the needed Startup values -- which includes the pointer
to the CommandLine parameter. Case in point:

call winapi "WinMain" using
hInstance,
hPrevInstance,
lpCmdLine,
nCmdShow
retuning status-code
end-call.

thanks.
 
The lpCmdLine is a pointer to a string containing any command-line arguments that get passed to your program.


If you don't use or expect any command-line parameters, you can ignore this parameter.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top