<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Trouble using .NET dll in CPP Builder' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Trouble using .NET dll in CPP Builder' posted on the 'C++ Builder' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2009 Programmers Heaven</copyright>
    <pubDate>Fri, 20 Nov 2009 20:30:54 -0700</pubDate>
    <lastBuildDate>Fri, 20 Nov 2009 20:30:54 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Trouble using .NET dll in CPP Builder</title>
      <link>http://www.programmersheaven.com/mb/bcbuilder/389235/389235/trouble-using-net-dll-in-cpp-builder/</link>
      <description>I have created a COM callable DLL in C# .NET 2.0 and created a TLB from the assembly using the .NET regasm tool.&lt;br /&gt;
&lt;br /&gt;
In Borland C++ Builder 4.0 I go to Project-&amp;gt;Import Type Library-&amp;gt; and find my DLL's type library there and click "Ok" to import it.&lt;br /&gt;
&lt;br /&gt;
BCB creates an HardwareCheck_TLB.cpp &amp;amp; HardwareCheck_TLB.h file.In a cpp file of the project I want to use the DLL I put:                    #include "HardwareCheck_TLB.h"&lt;br /&gt;
at the top.&lt;br /&gt;
&lt;br /&gt;
Then in code if I try to declare an object of that type in code:     IHardwareCheck hc = new IHardwareCheck();&lt;br /&gt;
I get the following compiler error:&lt;br /&gt;
&lt;br /&gt;
[C++ Error] Unit1.cpp(22): E2352 Cannot create instance of abstract class 'IHardwareCheck'.&lt;br /&gt;
[C++ Error] Unit1.cpp(22): E2353 Class 'IHardwareCheck' is abstract because of '__stdcall IHardwareCheck::IsExpress(wchar_t * *,TOLEBOOL *) = 0'.&lt;br /&gt;
&lt;br /&gt;
Anybody have any ideas how to get rid of this error?&lt;br /&gt;
&lt;br /&gt;
Thanks!</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/bcbuilder/389235/389235/trouble-using-net-dll-in-cpp-builder/</guid>
      <pubDate>Wed, 15 Apr 2009 08:23:18 -0700</pubDate>
      <category>C++ Builder</category>
    </item>
  </channel>
</rss>