Board index » delphi » Delphi 2.0 And VC++ DLL Usage

Delphi 2.0 And VC++ DLL Usage

Hi,

This is a tricky one. I am using Delphi 2.0 to call some routines in a
VC++ DLL. The DLL routines return pointers to memory blocks that I must
free. How do I do this?

Many thanks

Mark Brooks (ma...@vip.co.uk)

 

Re:Delphi 2.0 And VC++ DLL Usage


Quote
Mark C Brooks wrote:

> Hi,

> This is a tricky one. I am using Delphi 2.0 to call some routines in a
> VC++ DLL. The DLL routines return pointers to memory blocks that I must
> free. How do I do this?

Either provide (export) a function in the DLL to free the blocks, or
call the appropriate function directly (assuming it's exported from the
DLL).

Paul

Other Threads