Solved

Document

Posted on 1998-06-16
2
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

632 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