Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Document

Posted on 1998-06-16
2
Medium Priority
?
186 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 30 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

916 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