<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Integration with C++ Builder</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi John</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>To access C++ objects in Delphi you need to
create descendant C++ pure virtual classes</FONT></DIV>
<DIV><FONT face=Arial size=2>Read this article <A
href="http://rvelthuis.de/articles/articles-cppobjs.html">http://rvelthuis.de/articles/articles-cppobjs.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Todd.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=john.davys@rezare.co.nz href="mailto:john.davys@rezare.co.nz">John
Davys</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz
href="mailto:delphi@ns3.123.co.nz">delphi@ns3.123.co.nz</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 12, 2006 12:16
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [DUG] Integration with C++
Builder</DIV>
<DIV><BR></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hi</FONT> </P>
<P><FONT face=Arial size=2>Does anyone know how to access a C++ class from
Delphi? I have some legacy C++ code that I'd to wrap with a Delphi interface.
I'm using BDS 2006 so have both C++ Builder and Delphi personalities
available. The C++ code comes from Borland C++ v5.02. I'd like to recompile
the main classes in C++ Builder, then call them from Delphi if possible. I
know I could compile the C++ into a dll and call it that way but was wondering
if I could use the classes directly like a Delphi component?</FONT></P>
<P><SPAN lang=en-nz><FONT face=Arial size=2>Regards</FONT><FONT
face="Times New Roman"> </FONT></SPAN><BR><SPAN lang=en-nz><FONT face=Arial
size=2>John</FONT><FONT face="Times New Roman"> </FONT></SPAN><BR><SPAN
lang=en-nz><FONT face=Arial
size=1>----------------------------------------------------------------------------------
</FONT></SPAN><BR><SPAN lang=en-nz><FONT face=Arial size=1>John Davys, Senior
Consultant, Database Systems</FONT></SPAN> <BR><SPAN lang=en-nz><FONT
face=Arial size=1>Rezare Systems Limited</FONT></SPAN> <BR><SPAN
lang=en-nz><FONT face=Arial size=1>Waikato Innovation Park Ph: +64 7 8570824
</FONT></SPAN><BR><SPAN lang=en-nz><FONT face=Arial size=1>PO Box 9466 Fax:
+64 7 8570501 </FONT></SPAN><BR><SPAN lang=en-nz><FONT face=Arial
size=1>Hamilton Mobile: +64 275570824 </FONT></SPAN><BR><SPAN
lang=en-nz></SPAN><A href="mailto:john.davys@rezare.co.nz"><SPAN
lang=en-nz><U><FONT face=Arial color=#0000ff
size=1>john.davys@rezare.co.nz</FONT></U></SPAN></A><SPAN lang=en-nz></SPAN>
</P><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Delphi mailing
list<BR>Delphi@ns3.123.co.nz<BR>http://ns3.123.co.nz/mailman/listinfo/delphi<BR>
<P>
<HR>
<P></P>No virus found in this incoming message.<BR>Checked by AVG Free
Edition.<BR>Version: 7.1.394 / Virus Database: 268.8.2/356 - Release Date:
5/06/2006<BR></BLOCKQUOTE></BODY></HTML>