ExciteMouse
Jul 14th, 2000, 05:31 PM
Hello.
I am having a problem with this API instruction:
Private Declare Function inet_ntoa Lib "wsock32.dll" (ByVal inn As Long) As Long
(this function is used to convert a unsigned long ip address to a string i.e. 24.34.25.23)
As you can see the varible passed to the wsock32.dll is declared as LONG.
I have a legit IP address: 3582069972
this number, however, is not LONG... it is double.
when i try to pass this number to the above function i get overflow errors.
How can i pass this large number to the 'inet_ntoa' without getting overflow errors?
thanks =)
I am having a problem with this API instruction:
Private Declare Function inet_ntoa Lib "wsock32.dll" (ByVal inn As Long) As Long
(this function is used to convert a unsigned long ip address to a string i.e. 24.34.25.23)
As you can see the varible passed to the wsock32.dll is declared as LONG.
I have a legit IP address: 3582069972
this number, however, is not LONG... it is double.
when i try to pass this number to the above function i get overflow errors.
How can i pass this large number to the 'inet_ntoa' without getting overflow errors?
thanks =)