Dennis,
Excuse me!!
I have a DLL file named "TESTDLL.DLL".
In TESTDLL.DLL
export function :
void GetPChar(char** pstr);
In .NET C# ,
How to call "GetPChar(char** pstr)" function ?
What does the function do? If it returns a single string pointer, try
it like this
[DllImport("testdll.dll")]
static extern void GetPChar(out IntPtr pstr);
---
IntPtr pstr;
GetPChar(out pstr);
string s = Marshal.PtrToStringAnsi(pstr);
Then you might have to free the returned buffer somehow, depending on
how its allocated by the DLL.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.