Solved

Document

Posted on 1998-06-16
2
179 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

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

Title # Comments Views Activity
iSeries DB2 Query 2 91
difference between String.subString() and String.subSequence() 6 177
Doc'in system (example?) BA 7 89
Not needed 13 95
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

867 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

18 Experts available now in Live!

Get 1:1 Help Now