Solved

Document

Posted on 1998-06-16
2
178 Views
Last Modified: 2013-11-20
Q1 .Can an application can have more than one CDocument class?

Q2. An instance of an application can be created only by deriving a class from CWinApp and then instantiating an object of it.

An instance of an application class can be created directly
by declaring an object of CWinApp  class.

Which one of the above is true?

Advance thanks!
0
Comment
Question by:sunraj
2 Comments
 

Accepted Solution

by:
wyhjin earned 10 total points
ID: 1318075
Q1: An application can have more than one classes derived from CDocument.  You add them into your application by calling AddDocTemplate()

Q2:You got to do this, if using MFC.

You can not creat an object directly from CWinApp, because InitInstance() has to be overriden. Otherwise MFC will NOT do anything for you.

wyhjin
0
 

Author Comment

by:sunraj
ID: 1318076
Thank U wyhjin
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

757 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

23 Experts available now in Live!

Get 1:1 Help Now