I correct myself.  It is wrong to put %c in the StrPrintF function for err.

So now i check the error message to see if it matches any of the list of
netErr messages below by doing a switch check.  It does not correspond to
any of them.  Since I got that list from the Palm OS Reference Guide at
palmos.com/dev, does that mean that this error is undocumented?  How am i
supposed to know what is going wrong?

0
netErrTimeout
netErrNotOpen
netErrDNSNameTooLong
netErrDNSBadName
netErrDNSLabelTooLong
netErrDNSAllocationFailure
netErrDNSTimeout
netErrDNSUnreachable
netErrDNSFormat
netErrDNSServerFailure
netErrDNSNonexistantName
netErrDNSNIY
netErrDNSRefused
netErrDNSImpossible
netErrDNSNoRRS
netErrDNSAborted
netErrDNSBadProtocol
netErrDNSTruncated
netErrDNSNoRecursion
netErrDNSIrrelevant
netErrDNSNotInLocalCache

-----Original Message-----
From: Rainman [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 2:37 PM
To: Palm Dev Forum
Subject: NetLibGetHostByName error Pointer


Hi all,

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

0
netErrTimeout
netErrNotOpen
netErrDNSNameTooLong
netErrDNSBadName
netErrDNSLabelTooLong
netErrDNSAllocationFailure
netErrDNSTimeout
netErrDNSUnreachable
netErrDNSFormat
netErrDNSServerFailure
netErrDNSNonexistantName
netErrDNSNIY
netErrDNSRefused
netErrDNSImpossible
netErrDNSNoRRS
netErrDNSAborted
netErrDNSBadProtocol
netErrDNSTruncated
netErrDNSNoRecursion
netErrDNSIrrelevant
netErrDNSNotInLocalCache

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.

Thanks in advance.

Ray


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to