Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I am updating interface of an active x control. It has dual interface. I have manually updated the odi file, compiled it, and added the new methods to co-class and dual interface. On compilation , I get the error 'cannot instantiate abstract class Cobject::XObject due to members --- list of newly added members'. I have checked having updated dispatch & dual maps and added methods for both. But still compilation error remains?
Posted 10-Jan-11 1:54am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

check calling convention, parameters and so on. everything must match the expected method signatures.
 
Regards
Espen Harlinn
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

An abstract class cannot be instantiated. You MUST derive a new class from it, and implement all of the pure virtual functions in it, and then use the new class instead.
 
This is basic C++ stuff...
  Permalink  
Comments
Vigneshb6 at 10-Jan-11 8:10am
   
Yes, It is basic
Marcus Kramer at 10-Jan-11 13:39pm
   
+5... Perfect.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 10 Jan 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100