G
Guest
Hi,
I have a DLL using stdcall and a function of it is returning a null
terminated string. How do I declare this in C# (VS2005) ?
I try things like:
[DllImport(dllName)]
public static extern [MarshalAs(UnmanagedType.LPStr)] string
Version();
But keep getting syntax errors, so clearly I miss something. I also tryed
char[] but this give me exception error.
I have a DLL using stdcall and a function of it is returning a null
terminated string. How do I declare this in C# (VS2005) ?
I try things like:
[DllImport(dllName)]
public static extern [MarshalAs(UnmanagedType.LPStr)] string
Version();
But keep getting syntax errors, so clearly I miss something. I also tryed
char[] but this give me exception error.