Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: waveOutGetNumDevs Pin
Ernest Laurentin16-Jan-02 4:16
Ernest Laurentin16-Jan-02 4:16 
GeneralRe: waveOutGetNumDevs Pin
Mark Donkers16-Jan-02 5:04
Mark Donkers16-Jan-02 5:04 
GeneralCommunication between classes and some graphics Pin
16-Jan-02 3:30
suss16-Jan-02 3:30 
GeneralRe: Communication between classes and some graphics Pin
567890123416-Jan-02 4:16
567890123416-Jan-02 4:16 
Generalpassing an argument to an executable file Pin
JCY16-Jan-02 3:24
JCY16-Jan-02 3:24 
GeneralRe: passing an argument to an executable file Pin
Chris Losinger16-Jan-02 3:28
professionalChris Losinger16-Jan-02 3:28 
GeneralRe: passing an argument to an executable file Pin
JCY16-Jan-02 3:39
JCY16-Jan-02 3:39 
GeneralRe: passing an argument to an executable file Pin
Rick Crone16-Jan-02 4:39
Rick Crone16-Jan-02 4:39 
The command line parameters can be used in the InitInstance() of
your application. The command line is stored in m_lpCmdLine which is
a char array. If you pass your parameter with a slash (ie. /MYPARM)
they will be considered flags. If you don't include the slash the first
parameter will be considered to be the file you want to open. You can
turn off that behavior my setting:

cmdIndo.mShellCommand = CCommandLineInfo::FileNew;

but why not just include the slash?

*NOTE you can test your command line parameter in the developer studio!
see the PROJECT - SETTINGS - DEBUG(tab)

I usually deal with the command line in my applications InitInstance() just before:

// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);


GeneralRe: passing an argument to an executable file Pin
JCY16-Jan-02 4:54
JCY16-Jan-02 4:54 
GeneralEnumerating Network Servers Pin
Giles16-Jan-02 2:59
Giles16-Jan-02 2:59 
GeneralRe: Enumerating Network Servers Pin
Carlos Antollini16-Jan-02 3:08
Carlos Antollini16-Jan-02 3:08 
GeneralCDialog printer resolution Pin
Jonnie White16-Jan-02 2:35
Jonnie White16-Jan-02 2:35 
GeneralRe: CDialog printer resolution Pin
567890123416-Jan-02 4:23
567890123416-Jan-02 4:23 
GeneralRe: CDialog printer resolution Pin
Jonnie White16-Jan-02 4:52
Jonnie White16-Jan-02 4:52 
Generalqsort and CArray Pin
Gavin Jerman16-Jan-02 2:28
Gavin Jerman16-Jan-02 2:28 
GeneralRe: qsort and CArray Pin
Giles16-Jan-02 3:11
Giles16-Jan-02 3:11 
GeneralRe: qsort and CArray Pin
Joaquín M López Muñoz16-Jan-02 3:44
Joaquín M López Muñoz16-Jan-02 3:44 
GeneralRe: qsort and CArray Pin
Gavin Jerman16-Jan-02 4:35
Gavin Jerman16-Jan-02 4:35 
GeneralRe: qsort and CArray Pin
Joaquín M López Muñoz16-Jan-02 6:08
Joaquín M López Muñoz16-Jan-02 6:08 
GeneralRe: qsort and CArray Pin
Gavin Jerman16-Jan-02 21:22
Gavin Jerman16-Jan-02 21:22 
QuestionWhere is classwizard in Visual C++.NET ? Pin
16-Jan-02 2:21
suss16-Jan-02 2:21 
AnswerRe: Where is classwizard in Visual C++.NET ? Pin
Fazlul Kabir16-Jan-02 2:34
Fazlul Kabir16-Jan-02 2:34 
GeneralRe: Where is classwizard in Visual C++.NET ? Pin
Wizard_0116-Jan-02 2:46
Wizard_0116-Jan-02 2:46 
GeneralRe: Where is classwizard in Visual C++.NET ? Pin
Fazlul Kabir16-Jan-02 3:07
Fazlul Kabir16-Jan-02 3:07 
AnswerRe: Where is classwizard in Visual C++.NET ? Pin
Carlos Antollini16-Jan-02 2:54
Carlos Antollini16-Jan-02 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.