Hai All, I donno why no one replied to my mail :((
anyway ...I was able to do it!!!

Int32 timeout = 300;
Inside Event Loop of Application. I used ..

EvtGetEvent(&event,timeout); //My timeout , Instead of evtWaitForever

Inside AppHandleEvent,  I gave as..

if(eventP->eType == nilEvent)DoSomething();


Now I can perform any Task in My Function DoSomething() which now works in
background
I've succeeded sending data to my server in background from my Application !

I wish someone gets benefitted by this..
with regards,
 Dinesh.


-----Original Message-----
From: Dinesh Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 2:14 PM
To: [EMAIL PROTECTED]
Subject: BackGround Process : Wait.., I've already read the Archieves .



Hai All,
  I'm trying to simulate a background process in my palm Application.
I want to send/receive data to and fro from a Server using HTTP
But my requirement is that this should happen in background while the
Application is running

I've got suggestions to trap the 'nilEvent' in the event Loop of my
Application
and to call my Function from there which does all the Communication.
But still.., i'm not clear about the idea.
Can any one tell me how to do that .. or any alternatives..?

thanx in advance,
Dinesh.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to