Hi All
My custom has a dll which is based on NI-VISA to control their own instrument, I need to import this win32 dll in C#.net,
the prototype of a method in dll is "ViStatus TXPRMGR_errorMessage (ViSession instrumentHandle,ViStatus statusCode,ViChar _VI_FAR message[]); "
In my C# code, I wrote down like this [DllImport("Targetdll.dll")]
public static extern type(type1 instrumentHandle, type2 statusCode, type3 message[]);
Please mind the red part, I don't know what type I should write down.
I'm not familiar with visatype.
Thanks very much.
Bestwishes
Rexxar.Ben
********************************
*The best Chinese farmer*
********************************