Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

.net ip address

$
0
0

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


Viewing all articles
Browse latest Browse all 5339

Trending Articles



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