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

x
?
Solved

Adding a view class to class wizard

Posted on 2000-05-15
3
Medium Priority
?
188 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 150 total points
ID: 2811219
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
ID: 2811589
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
ID: 2811729
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

927 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