Like most things in programming, I learned this one the hard way...
<grin>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 23, 2000 12:22 AM
To: Palm Developer Forum
Subject: RE: Creating PDB files




From: Fergal Moran
>>> In C (and maybe VB) you can make the * 256 much faster by bit
shifting
>>> (l <<= 8).
>> Or you could use htonl() and htons() which convert longs and shorts
from
>> little to big endian

>FWIW, htonl() and htons() are not directly available via VB.  They
would
>have to be picked up from the appropriate winsock DLL.  Depending upon
Abolutely correct - but they are available from C which is why I
appended
my comments after the paragraph beginning with "In C (and maybe VB..."

>Also, there are some third party replacements for WinSock for ATM and
>other specialty networks.  In at least one of those cases, the 'n' is
>also little endian, so hton basically does nothing (no endian swap).
Now that I didn't know. Thanks for the tip!



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to