|
-
April 27th, 1999, 10:44 AM
#1
Class Constructor problem
Hi all,
I used the class wizard to create a new class. The class I need is a sort of wrapper class for another class I use. I cannot find the right base class to derive from so I pick generic CWnd. The problem is I need to have a parameterised constructor like CHelper::CHelper(int nMode) so I can initialised some variables.
I cannot compile for something like duplicate default constructor exists errors. Class wizard gave me CHelper::CHelper() but I need more. Can any one tell me how to it. I am sure we can have more than one constructor in a class. I believe something to do with the MESSAGE MAP but I am not sure. Any suggestion please.
Will
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|