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?

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

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.

Featured Post

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.

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…