Solved

Adding a view class to class wizard

Posted on 2000-05-15
3
178 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 51
mixString challenge 36 132
Expand LInux Boot partition remotly 3 96
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 476
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 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