Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Document

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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

670 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