Board index » delphi » Conversion/equivalent of char ** or char *** (C++) in Delphi

Conversion/equivalent of char ** or char *** (C++) in Delphi

Hi,

Im using a C++ DLL function whosend some back a Char ***  (2 dimensionnal
array of char* (= 2x2 String array) )

How can i read this value in delphi..... I read this variable with a Pointer
but then ????

I just know that  char * (C++) = PChar (Delphi)

thx

jerome, from France
jeromed...@yahoo.com

 

Re:Conversion/equivalent of char ** or char *** (C++) in Delphi


If the DLL returns a char *** it returns a pointer to a ONE-dimensional
PChar array, which you can define as:

type
  PPCharArr = ^TPCharArr;
  TPCharArr = array[0..MaxInt div SizeOf(PChar) - 1] of PChar;

procedure GetPCharArr(var P: PPCharArr);

or

type
  PPChar = ^PChar;

procedure GetPCharArr(var P: PPChar);

Quote
"jerome" <jeromed...@yahoo.com> wrote in message

news:9onfgd$h4c$1@wanadoo.fr...
Quote
> Hi,

> Im using a C++ DLL function whosend some back a Char ***  (2 dimensionnal
> array of char* (= 2x2 String array) )

> How can i read this value in delphi..... I read this variable with a
Pointer
> but then ????

> I just know that  char * (C++) = PChar (Delphi)

> thx

> jerome, from France
> jeromed...@yahoo.com

Other Threads