RE: char[4] data type in c for storing IPs - VB.NET equivalence
- From: David Anton <DavidAnton@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Aug 2008 18:15:18 -0700
'unsigned char' is Byte in VB.
As an example, the equivalent to the following C++:
unsigned char test[4];
is:
Dim test(3) As Byte
--
http://www.tangiblesoftwaresolutions.com
C++ to C#
C++ to VB
C++ to Java
VB & C# to Java
Java to VB & C#
Instant C#: VB to C#
Instant VB: C# to VB
Instant C++: VB, C#, or Java to C++/CLI
"emitojleyes" wrote:
Hi everyone:.
i read from the documentation of a dll that there is a struct that uses
char[4] for storing an IP address. How can it be? and how come i can get to
representate the same value in a string VB.NET data type, knowing that this
is its equivalence (for char4)?
Next is the data type definition
'''unsigned char[4]
<System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=4)> _
Public IP As String
Thanks very much for your help!
--
Emilio Javier Leyes
Técnico Universitario en Informática
Sistema de Emergencias 911
Salta, Argentina
- Follow-Ups:
- RE: char[4] data type in c for storing IPs - VB.NET equivalence
- From: emitojleyes
- RE: char[4] data type in c for storing IPs - VB.NET equivalence
- References:
- char[4] data type in c for storing IPs - VB.NET equivalence
- From: emitojleyes
- char[4] data type in c for storing IPs - VB.NET equivalence
- Prev by Date: Re: Good Question???!!
- Next by Date: RE: char[4] data type in c for storing IPs - VB.NET equivalence
- Previous by thread: char[4] data type in c for storing IPs - VB.NET equivalence
- Next by thread: RE: char[4] data type in c for storing IPs - VB.NET equivalence
- Index(es):
Relevant Pages
|