How to define a function from WIN32 DLL in c# .
C#
3
Posts
2
Posters
1
Views
1
Watching
-
i want to use a function defined in a win32 dll. which is defined as below: void Func1(int a,int b,USHORT ** VarArray); in C#, which data type should i use for the parameter " USHORT ** VarArray "?
I suppose ushort [][] VarArray
-
I suppose ushort [][] VarArray
i have the dllimport as below: [DllImport("DS40xxSDK.dll")] private static extern int SetOsdDisplayModeEx(IntPtr hChannelHandle,int color,bool Translucent,int param,int nLineCount,ushort[][] FormatArray); and call it as below: private void myFunc() { int number=OSDStrings.Length; ushort [] [] FormatArray=new ushort[number][]; for(int i=0;i