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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trouble using C# DLL in BCB 4

Status
Not open for further replies.

dotNetNob09

Programmer
Feb 4, 2009
2
US
I have created a COM callable DLL in C# .NET 2.0 and created a TLB from the assembly using the .NET regasm tool.

In Borland C++ Builder 4.0 I go to Project->Import Type Library-> and find my DLL's type library there and click "Ok" to import it.

BCB creates an HardwareCheck_TLB.cpp & HardwareCheck_TLB.h file.

In a cpp file of the project I want to use the DLL I put:
#include "HardwareCheck_TLB.h"
at the top.

Then in code if I try to declare an object of that type in code:

IHardwareCheck hc = new IHardwareCheck();

I get the following compiler error:

[C++ Error] Unit1.cpp(22): E2352 Cannot create instance of abstract class 'IHardwareCheck'.
[C++ Error] Unit1.cpp(22): E2353 Class 'IHardwareCheck' is abstract because of '__stdcall IHardwareCheck::IsExpress(wchar_t * *,TOLEBOOL *) = 0'.

Anybody have any ideas how to get rid of this error?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top