Imported from previous forum
Dear Dennis ,
My application is written using visual basic 6
i made import for a library that includes the ntohs through this line of code :
Private Declare Function ntohs Lib “wsock32.dll” (ByVal addr As Long) As Long
or
Private Declare Function ntohs Lib “Ws2_32.lib” (ByVal addr As Long) As Long
but actually i don’t know how this will work .
I read that the ntohs function returns the value in host byte order. If the netshort parameter was already in host byte order, then no operation is performed.
but i didn’t understand the way to apply this using code so can u help me by descriping it in a practical example??
and thanks alot
yours Mohannad