Solved

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

Posted on 1998-01-27
3
354 Views
Last Modified: 2006-11-17
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
Comment
Question by:frlaunt
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
mitchell042997 earned 50 total points
ID: 1179318
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
 

Author Comment

by:frlaunt
ID: 1179319
Super! I'll give it a try. Thanks for your help.
0
 

Author Comment

by:frlaunt
ID: 1179320
Super! I'll give it a try. Thanks for your help.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

747 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

15 Experts available now in Live!

Get 1:1 Help Now