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

Integrating Delphi code with bcb

Status
Not open for further replies.

randomnumbers

Programmer
Mar 23, 2004
1
SE
I have some delphi code I want to use in my BCB project.
It is long and complex so I really don't want to rewrite it in C++.
I can add the .pas file to my project and it compiles with no problems.
However, I cannot for the life of me work out how to call the Delphi/Pascal functions from my BCB code, nor how to create a suitable structure to catch the variables that the Delphi/Pascal code returns.
Can anyone put me out of my misery?!
Thanks in advance,
Andy
 
When you compile the Delphi code using Builder, it will automagically generate the BCB header file. Simply include this header file in your BCB source and it should work. Take a look at the header file to see the function prototypes etc. For how to use/access the pascal functions and data.

Good Luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top