G
Guest
Hi,
I have a C# program and want to call a dll, but have problem to receive the
data from the dll.
The dll declaration is the following :
"extern "C" void GetSN(TCHAR** pData)"
The Dll call is the following :
[DllImport("mydll.dll")]
private static extern void GetSN(ref string[] val1);
....
string[] valueStr = new string[6];
....
GetSN(ref valueStr);
I have the following error :
"An unmanaged exception was happened : 'System.NotSupportedException'"
Does anybody have an idea of the problem ?
Thanks in advance for any answer.
I have a C# program and want to call a dll, but have problem to receive the
data from the dll.
The dll declaration is the following :
"extern "C" void GetSN(TCHAR** pData)"
The Dll call is the following :
[DllImport("mydll.dll")]
private static extern void GetSN(ref string[] val1);
....
string[] valueStr = new string[6];
....
GetSN(ref valueStr);
I have the following error :
"An unmanaged exception was happened : 'System.NotSupportedException'"
Does anybody have an idea of the problem ?
Thanks in advance for any answer.