Hello, I have already posted this question butI really need to know the
answer, sorry. I make an application that will synchronize data over the
web. It has two modes:
1. Work online
2. Work offline
So, I'd like to add the following feature. When the application is launching
it determines whether palm is connected to the internet. And if it is not
connected application authomatically set offline mode. I have tried to do
the following:

UInt16 AppNetRefnum;
 err = SysLibFind("Net.lib", &AppNetRefnum);
 if(err) return err;
 err = NetLibOpen(AppNetRefnum, &ifErrs);
 if
rr==0)&&((ifErrs==0)||(ifErrs==netErrAlreadyOpen))){ 
      workOnline=true;
      NetLibClose(AppNetRefnum,false);
 }
 else workOnline=false;
 
It works fine on the emulator but does not work on real palm device. Also application 
allerts "Service Connection Progress" Alert that is not good. Could anyone help me to 
solve this problem.
Thanks in advance,
Anton



-- 
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