Hi,
Did you try to run your app on the Emulator with 3.5 PalmOS ROM? I have the
same problem. My app works well on 3.5 but can't browse web on 3.3 OS. Seems
like NetLib is up without errors. Here is how I open and close Netlib
UInt16 error;
Err err = NetLibOpen(AppNetRefnum, &error);
if (err != 0 && err != netErrAlreadyOpen) {
FrmCustomAlert(DebugAlert, "Failed to connect.","", "");
} else {
if(error == 0 && err == 0) {
// Close, but leave the stack up
NetLibClose(AppNetRefnum, false);
// Quit app
EventType evt;
evt.eType = appStopEvent;
EvtAddEventToQueue(&evt);
handled = true;
break;
}
else {
// It errored out bringing up the primary interface.
// Shut it back down
NetLibClose(AppNetRefnum, true);
FrmCustomAlert(DebugAlert, "Failed to connect.","", "");
}
}
Hope this would help,
Dmitri.
"Hui Min" <[EMAIL PROTECTED]> wrote in message
news:59702@palm-dev-forum...
>
> Hi,
>
> My program allows me sign on and establish a connection through a
> modem.
> But I can't surf the web nor check my emails.
> Please comment if there is anything wrong with my logic.
>
> Logic:
> Open NetLib
> The palm will sign on n establish the connection
> < But I can't surf the Net > ---> eg: using
> EudoraWeb
> < Is there any code that I need to browse the web? >
> Close NetLib
>
> I had searched the knowledge base n other sites for help but was not
> successful.
> In actual fact, I wanted to simulate what the Connect button under
> Network Preferences is doing.
>
> Please advise.
> Regards,
> Hwee Min
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/