Solved

No automatic document opening on app start

Posted on 1998-12-03
1
176 Views
Last Modified: 2013-11-20
I've created a MDI App with AppWizard. How do I prevent the
program from opening a default document when starting?
0
Comment
Question by:jntv
1 Comment
 

Accepted Solution

by:
hap earned 50 total points
ID: 1325719
If you are using 5.0 or later the only changes that you have to make are in your InitInstance() member function of your application class:

After the line:
      ParseCommandInfo(cmdInfo);
and before the line:
      if (!ProcessShellCommand(cmdInfo)

add the following lines:
      // DON'T display a new MDI child window during startup!!!
      cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
 
(I don't recall how it was done previously, but I recall it was more obvious, so I'm sure that this will solve your problem)

Good Luck
Hap
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now