Hello,
I am calling a .net dll driver. There is a variable defined as "System_Net_IPAddress IPAddr" in the .h file. I need to assign an IP address (e.g. 192.168.5.1) to the variable IPAddr. I am stuck how to do this.
I asked the .net dll author. He said IPAddress is a native type to .net. He uses
new IPAddress(new byte[] { 192, 168, 5, 1 }) or
IPAddress address = IPAddress.Parse(“192.168.5.1”) to do the assignment. But how to do this in CVI? Should I use CDotNetCreateArray and CDotNetSetArrayElements functions? Is there an example available?
Thanks a lot!
JZ