Problem adding previously deleted method in ATL COM
-
I deleted an interface method and and tried to add it again but I get the following errors twice when compiling: ...\include\atlcom.h(1827) : error C2259: 'CComObject' : cannot instantiate abstract class due to following members: ...\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator >::CreateInstance(void *,const struct _GUID &,void ** )' ...\include\atlcom.h(1827) : warning C4259: 'long __stdcall IESSUnit::ClassDescription(void)' : pure virtual function was not defined ...\esscounit.h(205) : see declaration of 'ClassDescription' ...\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator >::CreateInstance(void *,const struct _GUID &,void ** )' I've tried removing every instance of 'ClassDescription', restarting DevStudio and rebuilding the entire COM. I've tried adding the method without arguments. Nothing works. Any suggestions? Dave Dave http://www.unit-conversion.com http://www.essco.co.uk
-
I deleted an interface method and and tried to add it again but I get the following errors twice when compiling: ...\include\atlcom.h(1827) : error C2259: 'CComObject' : cannot instantiate abstract class due to following members: ...\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator >::CreateInstance(void *,const struct _GUID &,void ** )' ...\include\atlcom.h(1827) : warning C4259: 'long __stdcall IESSUnit::ClassDescription(void)' : pure virtual function was not defined ...\esscounit.h(205) : see declaration of 'ClassDescription' ...\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator >::CreateInstance(void *,const struct _GUID &,void ** )' I've tried removing every instance of 'ClassDescription', restarting DevStudio and rebuilding the entire COM. I've tried adding the method without arguments. Nothing works. Any suggestions? Dave Dave http://www.unit-conversion.com http://www.essco.co.uk
hey Dave, Devstudio also generates a .rgs file, look inside and you'll find that it like a .reg file. You can manually update this but its like modifing generated code... If your up to it, recreate the project and re-add the methods. Let me know how you go. Jules
-
hey Dave, Devstudio also generates a .rgs file, look inside and you'll find that it like a .reg file. You can manually update this but its like modifing generated code... If your up to it, recreate the project and re-add the methods. Let me know how you go. Jules
Thanks for replying. When I looked in my three .rgs files (one for each of my interfaces) I didn't find anything that relates to the individual methods, only the interface itself. What am I meant to do with this file? Dave http://www.unit-conversion.com http://www.essco.co.uk