• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

Generated Wrapper Classes Duplicates!!!

When you generate a class for, say, a new dialog and you've included some Active X controls, VC6 generates wrapper classes for all of these things that are not standard MFC (ie. COleFont, CPicture, etc...).  The annoying thing is, when you create another dialog that uses the same Active X control, VC6 generates ANOTHER wrapper class (say, I had COleFont, it now generates files for COleFont2 which, other than the 2 in the name, are identical)!  Is there any way to make VC6 smart so that it knows to use the wrapper already generated.  I swear, I can't stand having 30+ files that all do the exact same thing for the exact same control.
0
superstarr
Asked:
superstarr
1 Solution
 
mikeblasCommented:
Yeah.  When you generate the class, don't ask for the extra wrappers--uncheck them in the listbox.

..B ekiM
0
 
superstarrAuthor Commented:
Yeah, but what if I want access to the controls as member variables? Don't I need the wrapper classes for that?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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