Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Problem adding previously deleted method in ATL COM

Problem adding previously deleted method in ATL COM

Scheduled Pinned Locked Moved COM
helpc++comquestion
3 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dave Moran
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • D Dave Moran

      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

      J Offline
      J Offline
      Julien
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • J Julien

        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

        D Offline
        D Offline
        Dave Moran
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups