I have a DLL I wrote in PowerBasic where I have a function declared like this:
FUNCTION GetAllAdapters(Target2 AS ASCIIZ) EXPORT AS LONG (the long is a lpstr)
In my Delphi code I declared this function like this:
Function GETALLADAPTERS(Target2:lpstr): lpstr; External 'newnic2.dll';
My question is how to set up the call with the string pointers and read the string from the pointer returned. I have tried a couple of different things, but I cannot narrow down the problem to my declare or the call.
Any help is appreciated.