// JP opened flex table

Click to See Complete Forum and Search --> : m_bShowSplash is set to TRUE incorrectly


ccw
April 16th, 2002, 04:35 AM
In MSDN, CCommandLineInfo::ParseParam's description says:

"The default implementation also sets m_bShowSplash to TRUE only in the case of a new file. In the case of a new file, the user has taken action involving the application itself. In any other case, including opening existing files using the shell, the user action involves the file directly. In a document-centric standpoint, the splash screen does not need to announce the application starting up."

But when I call application with commandline "MyApp.EXE MyDoc.txt", the m_bShowSplash is still be set to TRUE, is it a bug in VC?

I use VC 6.0 sp5.

---
DLL to Lib - Convert DLL into static lib without requiring source codes
at www.binary-soft.com

Bill Heffner
April 16th, 2002, 07:27 PM
I nelieve the documentation is referring to the invocation of the program by (for instance) a double-click on the file name in Explorer. The system knows about the file first and then learns about the executable from the shell. In that event the slpash is not shown.

In your invocation with the file name in the command line the file is a new file in the sense that prior to the command line being parsed the file is not known. I believe the flag is set before the command line is parsed.

//JP added flex table