Ray,
Error 4688 in decimal is 0x1250 in hex. Because you are trying to
print this as a character (see your "%c"), you are printing just the
last byte -- the 0x50, which is the ASCII value for the letter 'P'.
I think you'll find that error code 0x1250 is equivalent to
netErrNoDNSServers. Please see the FAQ on interpreting error codes:
<http://tangentsoft.net/palmfaq/intermediate.html#errors>
The following site is also very handy:
<http://prc-tools.sourceforge.net/errorcodes.html>
-- Keith
At 2:37 PM -0800 12/14/01, Rainman wrote:
>When I call the NetLib function
>
> hostInfoP = NetLibGetHostByName (sNetLibRefNum,
> hostNameP,
> hostInfoBufP,
> kNetTimeout * SysTicksPerSecond (),
> &err);
>
>The call fails and returns an error in the param &err.
>
>So I check what this error is by printing it out.
>
> StrPrintF (sText, "Error %c retrieving host address", err);
>
>But instead of getting one of these following possible errors
>
><snip>
>
>I get the error �P�. When i print it out as an integer it is Error 4688.
>Has anyone come across this error and know what it means? I�ve searched
>through the knowledge base, documentation and newsgroups, but I havent found
>this error.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/