Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

How can I integrate a ViChar _VI_FAR result[ ] in C#

$
0
0

I'm trying to use a wrapped VXIPnP Driver in C# .

 

I need to import the functions of these win32 dll in C#.net, so I call all the methodes with PInvoke.

These calls works for all Methods, except these Methods which returning a Pointer to a Array like(ViChar _VI_FAR result[ ]);

How can I handle these Types in C#;

 

 

int pInvokeResult = PInvoke.CmdString_Q(this._handle, cmd_string,ref size,out  result);

 

[DllImport("device_32.dll", EntryPoint = "device_cmdString_Q", CallingConvention = CallingConvention.StdCall)]

public static extern int CmdString_Q(System.Runtime.InteropServices.HandleRef vi, String cmd_string, ref Int32 size,  out char[]  result);

 

 

I'm not familiar with these Types.
 
Thanks very much.
 
 
Stefan

Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>