Click here to Skip to main content
12,068,141 members (48,779 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ Win32 VC10.0
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 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
Web03 | 2.8.160208.1 | Last Updated 10 Jan 2011
Copyright © CodeProject, 1999-2016
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