D
Devender Khari
Hi Friends,
In our Automation server on VC++ 6.0, we are calling a static function,
UpdateRegistryAll(), of COleObjectFactory class
to register a list of factory objects of the server. In addition to the
interfaces, these factory objects includes a COleTemplateServer object as a
member object of the CWinApp derived class. The function UpdateRegistryAll
was registering all the interfaces successfully in VC6 but in VC7 it's just
registering one interface. This is because the second factory is the
COleTemplateServer and registration for this fails, after which the
registration does not proceed further leaving the remaining interfaces
unregistered. On debugging in source code for these classes I found that the
implementation of COleObjectFactory::UpdateRegistry is changed from VC6 to
VC7. I searched the MS knowledgebase but couldn't found any relevant
article. Please tell me if there's any clean was of getting all the
factories registrered.
Thanks a lot.
Regards,
Devender Khari
In our Automation server on VC++ 6.0, we are calling a static function,
UpdateRegistryAll(), of COleObjectFactory class
to register a list of factory objects of the server. In addition to the
interfaces, these factory objects includes a COleTemplateServer object as a
member object of the CWinApp derived class. The function UpdateRegistryAll
was registering all the interfaces successfully in VC6 but in VC7 it's just
registering one interface. This is because the second factory is the
COleTemplateServer and registration for this fails, after which the
registration does not proceed further leaving the remaining interfaces
unregistered. On debugging in source code for these classes I found that the
implementation of COleObjectFactory::UpdateRegistry is changed from VC6 to
VC7. I searched the MS knowledgebase but couldn't found any relevant
article. Please tell me if there's any clean was of getting all the
factories registrered.
Thanks a lot.
Regards,
Devender Khari