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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a some question

Status
Not open for further replies.

cibrran

Programmer
Feb 24, 2001
77
CA
commonly We used to parameter in Dos Programming like argc

or argv......... Next line is some examples............

main(argc, argv[0]) {


}

then......... How do I manipulate this function in Visual

C++ (It's suppoese that use MFC)

If anybody knows this problem.......... please illustrate

to me so detaily...............

It's so important to me!....................

good-bye dear


 
Hmm, I'm not really sure what your question is. If your asking how to get the command line in MVC++ then take a look at the GetCommandLine() function. For example: If you have a dialog based program in the InitInstance() function of your main app class you could say:

//grab the command line args passed in
LPTSTR lpstrCmdLine = GetCommandLine();

You could assign lpstrCmdLine to a CString variable and manipulate it with any CString function.

bitwise
 
please Don't manipulate this function?

It's just only controled very low skill!

I want to manipulate this so detaily.......


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top