Hi,
I have the next function in an old dll.
myType function(unsigned long *var1, unsigned long var2, wchar_t *var3);
I want to export this function to C#, and I try the next
[DllImport("myLib.dll", EntryPoint="function"]
public static extern myType myNewFunction(ref uint var1, uint var2, ref string[]);
But when I try to use the function I recive a System.ExecutionEngineException.
Can somebody help me? I think that I've problems with wchar_t.
Thanks.
Ernesto.
I have the next function in an old dll.
myType function(unsigned long *var1, unsigned long var2, wchar_t *var3);
I want to export this function to C#, and I try the next
[DllImport("myLib.dll", EntryPoint="function"]
public static extern myType myNewFunction(ref uint var1, uint var2, ref string[]);
But when I try to use the function I recive a System.ExecutionEngineException.
Can somebody help me? I think that I've problems with wchar_t.
Thanks.
Ernesto.