Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi array of pchar aus dll übergeben??? (https://www.delphipraxis.net/19727-array-pchar-aus-dll-uebergeben.html)

yellomb 7. Apr 2004 20:50


array of pchar aus dll übergeben???
 
Hallo Leute,
ich möchte aus einer dll-function ein array of PChar übergeben,
hat jemand ne ahnung wie das geht??

function ListDirs(Path: pchar):.....???

NicoDE 7. Apr 2004 21:19

Re: array of pchar aus dll übergeben???
 
Zitat:

Zitat von yellomb
ich möchte aus einer dll-function ein array of PChar übergeben,

Dafür brauchst Du einen Typ:
Delphi-Quellcode:
type
  PPCharArray = ^TPCharArray;
  TPCharArray = array of PChar;

function GetFoo(Bar: PChar): TPCharArray;
//...
procedure FreeFoo(var Bar: TPCharArray);


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:43 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz