"Dmitry Grinberg" <[EMAIL PROTECTED]> schrieb:

> // Look for a system library
> err = SysLibFind("Net.lib", &AppNetRefnum);
> if (err || !AppNetRefnum) return err;
> 
> //now you can call NetLibIFUp() using the AppNetRefNum...notice no
> call to netlibopen. it is not needed...

I see...
But it does NOT work...

So is my code:

if(SysLibFind("Net.lib", &AppNetRefnum) == 0)
{
  if(NetLibIFUp(AppNetRefnum, Creator, Instance))
    StrCopy(W, "T");
  else
    StrCopy(W, "F");
}
else
  StrCopy(W, "0");

then, by drawing the main window, I display the content of W.
It is ALWAYS true, don't care if the PDA is connected or not...

Where is the error?

Thanks
Luca Bertoncello
([EMAIL PROTECTED])

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to