RE: Accessing C++ DLL function from Delphi

<[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
Richard -

Thanks.  I have finally resolved the problem (or problems actually).  The
main problem was as you indicated - the infamous C++ name mangling.  I
eventually did what I should have done at the outset and ran TDUMP on the
DLL.  The actual function names included several additional characters,
mostly ampersands and digits at the end.  When I revised my Delphi calls to
use those actual names, all went well.  However, the routines still didn't
work right until I modified the calling conventions somewhat.  Stdcall was
required for the functions, but for some reason only cdecl would work for
the procedures I used for functions that returned void.

At any rate all is OK now.

Regards -

Tom


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Inkjet cartridges up to 80% off. HP, Epson, Lexmark--we have your brand.
Free shipping on every order to the U.S. and Canada! Excellent service.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/QWB0QC/.eUGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.