Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 380
  • Last Modified:

Want to inherit from CObject using MS VC++ v5 ClassWizard

New to MS Visual C++ but not to C++ programming in general. I'm building an app with MS VC++ v5, and want to create a class which inherits from CObject, not one of its derivatives (this is a base class for other "work" objects I'll create, not an object associated with UI processing). Would like to use Class Wizard so I can build components for reuse in other apps. Can this be done? If so, what are the steps? If not, any alternative approaches you can suggest?
0
frlaunt
Asked:
frlaunt
  • 2
1 Solution
 
mitchell042997Commented:
Choose the menu option Insert / Insert Class.  Now, just name your class and choose the base class to be CObject.  This class will now reside in ClassWizard and have all of the default comments and preprocessor marks MFC kindly enters for you.
0
 
frlauntAuthor Commented:
Super! I'll give it a try. Thanks for your help.
0
 
frlauntAuthor Commented:
Super! I'll give it a try. Thanks for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now