Solved

Adding a view class to class wizard

Posted on 2000-05-15
3
166 Views
Last Modified: 2013-11-20
I am using 2 different views in a CFormView based application but I can only control one of them (the original) from Class Wizard.  Do I have to add the new view class manually somehow to Class Wizard to control it?  Is this possible?

Thanks.
0
Comment
Question by:klingej
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
captainkirk earned 50 total points
Comment Utility
How did you create the second view class???

Here's a tip: you need to make sure that all of the MFC "insert blocks" exist in your source files, like the BEGIN_MESSAGE_MAP / END_MESSAG_MAP pair in your .cpp file and the AFX_MSG block and the DECLARE_MESSAGE_MAP and AFX_INSERT_LOCATION macros in your .h file...

try that and then delete the .clw file then rebuild the .clw file by attempting to get into Class Wizard - it will ask you what files you want to use to rebuild the class info file...


hope that helps...
0
 

Author Comment

by:klingej
Comment Utility
That worked fine. Is there a way to accomplish the same thing without deleting the .clw file?  Can you just add source files to what class wizard includes?

Thanks.
0
 
LVL 4

Expert Comment

by:captainkirk
Comment Utility
Yes, your source files should be included in the project in order to even compile and be included in the various project views (Class View, File View, Resource View) ... glad it helped, anyway...

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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 (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

9 Experts available now in Live!

Get 1:1 Help Now