Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to debug a C++builder dll from Delphi if I have the dll sourcecode?

I have an application written in Delphi 7 which uses a c++ dll written in BCB 5.
I want to debug this dll from the Delphi IDE is this possible?

If it's possible which are the steps to debug?

As additional information I have the full source code of the dll.

like image 1000
Salvador Avatar asked May 30 '11 20:05

Salvador


2 Answers

It has been a while since I have dealt with C++ / Delphi together. But if I remember correctly, you can use the BCB IDE to run the Delphi application (compiled already) that uses your DLL. Basically, in your project settings in BCB, you can set a program to run when you click the "run" button, and I believe that you will be able to set breakpoints and stuff that will be caught when functions of your DLL are being called by that application. Still, this implies that you have BCB.

like image 133
Mikael Persson Avatar answered Sep 18 '22 21:09

Mikael Persson


My recollection, and it's been a while since I last tried this, is that you need the C++ Builder IDE to do this.

like image 21
David Heffernan Avatar answered Sep 20 '22 21:09

David Heffernan