I have been recently actively automating my MFC based utilities, using MSVC
4.0. With the correct Wizard options checked during application generation
I am able to add automation support for the application and the macros
which enable automation and property / method generation by using the Class
Wizard on the document class.
Other CCmdTarget derived classes are also ready to respond, since they have
built in support for dispatching. However, they don't enable property or
method wizardry in the Class Wizard.
The component gallery contains an element which generates automation macros
and IIDs. But this doesn't either enable property nor method generation for
existing classes by using the Class Wizard. Everything should obviously be
done by hand.
Does anybody know how to overcome this problem?
- One way would be to generate totally new classes. This enables
method/property support in the Class Wizard, but this doesn't really seem