Discussion:
App::InitInstance() Question
(too old to reply)
Hoop
2007-01-12 21:08:43 UTC
Permalink
Hi,
I have an MFC app that I have inherited for doing routine
maintenance/upgrades on.
There is a strange portion of code in App::InitInstance() that has me
somewhat confused,
specifically the 4 \ characters. This program compiles and runs fine. I
do not see what those \
are achieving, or why it compiles with those. If I comment one out will
have 100+ compile errors.
Anyone know what is going here?
Portion of InitInstance() below.
Thanks
Jeff



BOOL CCZDApp::InitInstance()
{

{ // BLOCK: doc template registration
// Register the document template. Document templates serve
// as the connection between documents, frame windows and views.
// Attach this form to another document or frame window by changing
// the document or frame class in the constructor below.
}

// CG: The following block was added by the Splash Screen component.
\
{
\
CCommandLineInfo cmdInfo;
\
ParseCommandLine(cmdInfo);
\

\
}
AfxEnableControlContainer();
Scot T Brennecke
2007-01-14 02:44:03 UTC
Permalink
Any chance you didn't paste the complete code here exactly as it is in your source file? That \
character looks like it's being used as a macro (#define) continuation character.
Post by Hoop
Hi,
I have an MFC app that I have inherited for doing routine
maintenance/upgrades on.
There is a strange portion of code in App::InitInstance() that has me
somewhat confused,
specifically the 4 \ characters. This program compiles and runs fine. I
do not see what those \
are achieving, or why it compiles with those. If I comment one out will
have 100+ compile errors.
Anyone know what is going here?
Portion of InitInstance() below.
Thanks
Jeff
BOOL CCZDApp::InitInstance()
{
{ // BLOCK: doc template registration
// Register the document template. Document templates serve
// as the connection between documents, frame windows and views.
// Attach this form to another document or frame window by changing
// the document or frame class in the constructor below.
}
// CG: The following block was added by the Splash Screen component.
\
{
\
CCommandLineInfo cmdInfo;
\
ParseCommandLine(cmdInfo);
\
\
}
AfxEnableControlContainer();
Loading...