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

x
?
Solved

Adding a view class to class wizard

Posted on 2000-05-15
3
Medium Priority
?
184 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
[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
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

660 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