Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error When Compiling

Status
Not open for further replies.

SamKook

Programmer
Mar 15, 2004
1
CA
I try to compile linksBoks, but i got this error :
error C2259: 'CXBFont' : cannot instantiate abstract class

I use vs.NET 2003

Anyone know what option i have to change or what modification i have to do to make this work?
 
You have one of following situations:
1. Your class has virtual functions declared as = 0(eg virtual void xxxxx() = 0;)
2. Your class is derived from a class what have such functions.

In the first situation, you must inherit a class, implement that functions and instantiate only inherited class. In the second situation, you already have the inherited class, just implement.
In case if you can not implement them(for example is a interface of a COM object), you should use some predefined functions what returns an instance of such class, for example QueryInterface or CoCreateInstance, or something other, deppending on your situation.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top