I had a "but it worked on my machine" experience today. I wrote a small
TCP/IP socket program for the Palm, basically modified sample code from the
O'Reilly book, that opened a socket to a server (written by me in Win C++)
and sent a test string. It worked great on my Win98 machine at home, but it
couldn't connect the socket on the Win2k and NT machines at the office. My
home machine isn't on a LAN and my office machines are, so that may have
been the difference. Or it could OS issues. Does anybody know or have any
experience with this?
I tracked the different behavior back to this code...
if (SysLibFind( "Net.lib", &AppNetRefnum) == 0) {
error = NetLibOpen(AppNetRefnum, &whichInterfaceErred);
. . .
On the Win98 machine, whichInterfaceErred is 0 after the NetLibOpen line.
(According to the debugger.) On the other machines, it had a nonzero value
(unfortunately I didn't mark the actual values.) I know this means that
some "interfaces" for the net lib didn't open correctly. But how do I find
out which ones? And why they didn't open? I couldn't find that info in the
docs. Any help would be greatly appreciated.
Vineel Shah
programmer around town
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html