E
Eric
Hi,
I have to pass a serialized structure in a byte array to a win32 api
function.
the structure in C++ has the following:
typedef struct
{
...
unsigned long IPAddr;
...
}HEADER_MSG_REC;
The way that I was converting my IP address before (in C++) from string to
long was inet_addr. I can't seem to find an equivilant function in C# that
will allow me to do the same.
The win32api is using inet_ntoa to convert the long back into the string
representation.
thanks in advance.
I have to pass a serialized structure in a byte array to a win32 api
function.
the structure in C++ has the following:
typedef struct
{
...
unsigned long IPAddr;
...
}HEADER_MSG_REC;
The way that I was converting my IP address before (in C++) from string to
long was inet_addr. I can't seem to find an equivilant function in C# that
will allow me to do the same.
The win32api is using inet_ntoa to convert the long back into the string
representation.
thanks in advance.