Geetha,

I don't know if this will help, but this is the code
I'm using to load the net library on my simulator.  It
works on both the simulator and on the real device.

  Err err;
  UInt8 allup;

  err = SysLibFind("Net.lib", &m_NetlibRefnum);
  if (err || !m_NetlibRefnum) {
    ThrowError("Net.lib library not found");
    m_NetlibRefnum = 0;
    return;
  }

  NetLibOpen(m_NetlibRefnum, &err);
  if (err) {
    ThrowError("An error occurred while opening
Net.lib");
    m_NetlibRefnum = 0;
    return;
  }

  NetLibConnectionRefresh(m_NetlibRefnum, true,
&allup, &err);
  if (err) {
    ThrowError("An error occurred while bringing up
the Net.lib connection");
    m_NetlibRefnum = 0;
    return;
  }


By the way, ThrowError() is just a short little
function I wrote for handling errors in my program.

I work on both a Treo 700p and a centro, and use the
garnet simulator from access-company's webpage, and
this code works for all of them.

--- Geetha Arasu <[EMAIL PROTECTED]> wrote:

> hi i am using Treo 680 simulator..
>      i am trying to send the http request and
> response.. So i am using
> NetLibrary. But it returns -1 which means there is
> no netlibrary... i found
> there is a function SysLibLoad(HS_HTTPLibDBType,
> HS_HTTPLibID, &gRefNum)
> to load the http library.. I dont find any function
> to load netlibrary.. 
>            I tried to search netlib.prc in google to
> download.. i dont find
> any..
>  could any one suggest
> 1. Is that NetLibrary  not found only in the Treo
> 680 simulator..if so what
> are the devices that supports NetLibrary
> 2. Is there any way to load the netlibrary in the
> simulator..
> 
> kindly help me to solve this problem.. thanks!!
> 
> 
> 
> -- 
> For information on using the ACCESS Developer
> Forums, or to unsubscribe, please see
> http://www.access-company.com/developers/forums/
> 



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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

Reply via email to