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

how to pass command line arguments via MFC?

Status
Not open for further replies.

kaya17

Programmer
Feb 9, 2004
78
SG
now i am doing a interface using MFC, anybody knows how to pass the arguments to command line via MFC? say, instead of typing scan 123.344.55.66 123.344.55.255 text1.txt
in the command line prompt,
i typed in a user interface which contains the ipstart: field and ipstop field. after i click OK, it will process the command line as in dos?

thanks for help!!!
 
#include<stdarg.h> and use global variables __argc and __argv. FIrst one is int and second one is char**.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top