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

Linking to a C++ .obj file

Status
Not open for further replies.

foolcow

Programmer
Oct 23, 2000
1
US
I'm trying to figure out how to call a C++ function from Delphi 5.

In the implementation section of my .pas file, I have the following two lines:

Code:
{$L stringutil.obj}
function FirstDigitInString( strX: PChar ):Integer;external;
stringutil.obj contains a function which was declared as follows (In Borland C++ Builder 5):

Code:
int __stdcall FirstDigitInString( char *strX );

When I try to compile, I get the compiler error, "Unsatisfied forward or external declaration: "FirstDigitInString"

Does anybody know what I should do to solve this? [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top