C++ to Delphi conversion

From: Oliver Young (none)
Date: 12/23/03


Date: Tue, 23 Dec 2003 10:40:31 +0100


> If the (C++) DLL allocated the memory
> with 'new', then you *must* pass the (variable, char*) memory back
> to the DLL so that it can call 'delete'. Delphi has no
> 'delete' operator so it will not be able to free the
> memory correctly.

Is this truth? Delphi can't free char* (PCHAR) output pointer from function?



Relevant Pages

  • c++ typedefs to delphi
    ... I am too addicted to Delphi but I now have to port some functions from a DLL ... PChar; outbytesleft: PInteger): integer; external 'iconv.dll' name ... var codepageFrom, codePageTo: arrayof char; ...
    (borland.public.delphi.nativeapi)
  • Re: Using VB6 dll in Delphi app.
    ... to make a *windows standard* .dll with VB6. ... The trouble occurs when we try to use it in a Delphi app. ...
    (microsoft.public.vb.general.discussion)
  • Re: New Delphi roadmap is coming: NO UNICODE PLEASE!
    ... Avoids DLL hell, because it ... The app is deployed and the user is getting an error. ... instances where upgrading .NET broke things that were working. ... Coming from Delphi, this isn't any big deal of course. ...
    (borland.public.delphi.non-technical)
  • Re: DLL with string params callable via D4 and VB
    ... > I have a DLL written in D6 that uses ShortStrings as parameters. ... I can't get beyond Delphi to ... > Is there any guidance you could give in regards to passing string ... written in order to be used by EXCEL 97 VBA. ...
    (borland.public.delphi.language.objectpascal)
  • Re: Why wont this work ?
    ... Yeap, more of a personal tool than a commercial offering, all of the other ... BHO tools i have found just dont seem to offer very much information, ... more about the dll, and hopefully will try and reveal what functions the ... Delphi IDE or RegSvr32 which brings us back in a full circle .... ...
    (alt.comp.lang.borland-delphi)