Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

check calling convention, parameters and so on. everything must match the expected method signatures.

Regards
Espen Harlinn
 
Share this answer
 
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...
 
Share this answer
 
Comments
Vigneshb6 10-Jan-11 8:10am    
Yes, It is basic
fjdiewornncalwe 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900