Click here to Skip to main content
15,921,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: FFT for dummies Pin
Joaquín M López Muñoz1-Sep-03 22:14
Joaquín M López Muñoz1-Sep-03 22:14 
GeneralRe: FFT for dummies Pin
Steve Messer2-Sep-03 6:21
Steve Messer2-Sep-03 6:21 
GeneralRe: FFT for dummies Pin
Joaquín M López Muñoz2-Sep-03 7:02
Joaquín M López Muñoz2-Sep-03 7:02 
GeneralRe: FFT for dummies Pin
Steve Messer2-Sep-03 7:58
Steve Messer2-Sep-03 7:58 
Questionhow to hide the view of MDI program at startup Pin
mr20031-Sep-03 8:06
mr20031-Sep-03 8:06 
AnswerRe: how to hide the view of MDI program at startup Pin
KaЯl1-Sep-03 10:45
KaЯl1-Sep-03 10:45 
GeneralRe: how to hide the view of MDI program at startup Pin
mr20032-Sep-03 8:07
mr20032-Sep-03 8:07 
GeneralRe: how to hide the view of MDI program at startup Pin
KaЯl2-Sep-03 8:29
KaЯl2-Sep-03 8:29 
I don't understand why you have two calls to ParseCommandLine. The following implementation should be enough.

BOOL CMotionControllerApp::InitInstance()<br />
{<br />
AfxEnableControlContainer();<br />
<br />
// Standard initialization<br />
// If you are not using these features and wish to reduce the size<br />
// of your final executable, you should remove from the following<br />
// the specific initialization routines you do not need.<br />
<br />
#ifdef _AFXDLL<br />
Enable3dControls(); // Call this when using MFC in a shared DLL<br />
#else<br />
Enable3dControlsStatic(); // Call this when linking to MFC statically<br />
#endif<br />
<br />
// Change the registry key under which our settings are stored.<br />
// TODO: You should modify this string to be something appropriate<br />
// such as the name of your company or organization.<br />
SetRegistryKey(_T("Local AppWizard-Generated Applications"));<br />
<br />
LoadStdProfileSettings(); // Load standard INI file options <br />
<br />
// Register the application's document templates. Document templates<br />
// serve as the connection between documents, frame windows and <br />
<br />
CSingleDocTemplate* pDocTemplate;<br />
pDocTemplate = new CSingleDocTemplate(<br />
IDR_MAINFRAME,<br />
RUNTIME_CLASS(CMotionControllerDoc),<br />
RUNTIME_CLASS(CMainFrame), // main SDI frame window<br />
RUNTIME_CLASS(CMotionControllerView));<br />
AddDocTemplate(pDocTemplate);<br />
<br />
// Parse command line for standard shell commands, DDE, file open<br />
CCommandLineInfo cmdInfo;<br />
ParseCommandLine(cmdInfo);<br />
<br />
CSplashWnd::EnableSplashScreen(cmdInfo.m_bShowSplash);<br />
<br />
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;<br />
// Dispatch commands specified on the command line<br />
if (!ProcessShellCommand(cmdInfo))<br />
return FALSE;<br />
<br />
// The one and only window has been initialized, so show and update <br />
// m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);<br />
// m_pMainWnd->UpdateWindow();<br />
<br />
return TRUE;<br />
}


Is the ProcessShellCommand method overriden somewhere in your code?

Check your mail, I sent a small demo application to you.

HTH,

K.






Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed - Dwight D. Eisenhower

Questionhow to hide the view of MDI program Pin
Anonymous1-Sep-03 8:05
Anonymous1-Sep-03 8:05 
QuestionHow to fit a bitmap into a CStatic control Pin
tico_tech1-Sep-03 7:38
tico_tech1-Sep-03 7:38 
AnswerRe: How to fit a bitmap into a CStatic control Pin
Anonymous1-Sep-03 10:46
Anonymous1-Sep-03 10:46 
GeneralAnybody please help with linked list implementation Pin
digiman20031-Sep-03 6:02
digiman20031-Sep-03 6:02 
GeneralRe: Anybody please help with linked list implementation Pin
DViggiano1-Sep-03 7:11
DViggiano1-Sep-03 7:11 
GeneralOnPaint problem Pin
YaronNir1-Sep-03 5:59
YaronNir1-Sep-03 5:59 
GeneralRe: OnPaint problem Pin
Stefan Pedersen1-Sep-03 10:34
Stefan Pedersen1-Sep-03 10:34 
GeneralRe: OnPaint problem Pin
YaronNir2-Sep-03 4:08
YaronNir2-Sep-03 4:08 
GeneralRe: OnPaint problem Pin
Neville Franks1-Sep-03 10:47
Neville Franks1-Sep-03 10:47 
GeneralRe: OnPaint problem Pin
YaronNir2-Sep-03 4:08
YaronNir2-Sep-03 4:08 
GeneralI would like to calculate pi. Pin
Snyp1-Sep-03 4:23
Snyp1-Sep-03 4:23 
GeneralRe: I would like to calculate pi. Pin
Ted Ferenc1-Sep-03 4:53
Ted Ferenc1-Sep-03 4:53 
GeneralRe: I would like to calculate pi. Pin
Dominik Reichl1-Sep-03 6:32
Dominik Reichl1-Sep-03 6:32 
GeneralRe: I would like to calculate pi. Pin
User 66581-Sep-03 5:31
User 66581-Sep-03 5:31 
GeneralRe: I would like to calculate pi. Pin
Anonymous1-Sep-03 6:52
Anonymous1-Sep-03 6:52 
GeneralSTL deque container question Pin
YaronNir1-Sep-03 3:59
YaronNir1-Sep-03 3:59 
GeneralRe: STL deque container question Pin
ZoogieZork1-Sep-03 4:20
ZoogieZork1-Sep-03 4:20 

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.