Click here to Skip to main content
13,051,502 members (55,665 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 0:54am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

Espen Harlinn
Rate this: bad
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...
Vigneshb6 10-Jan-11 8:10am
Yes, It is basic
Marcus Kramer 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 10 Jan 2011
Copyright © CodeProject, 1999-2017
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