Re: data call:readfile on pocketPC2003

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If you are a Windows app then you may want to use the simple call back.

If not then you probably need to think about some kind of threading.
Specifically, you might have a main event thread. When, for example a call
presents as offering, you call TAPI's lineAnswer() and hopefully the TSP
quickly returns and indicates that the request was accepted and will
complete asyncronously. You save the request ID and any context state
information you need. You then go back to sleep waiting for the next TAPI
events or requests from some kind of foreground thread. When an event
arrives, if it is a LINE_REPLY you look up the request ID and based the
result handle appropriately.

As I say, if you are a windows app and especially if you are only handling a
single line then using the hidden window call back notification mechansim
then you can just respond to the call offering event by answering the call,
saving the request ID and returning to the win proc. Your UI and TAPI will
all just work without any data sharing or threading issues.
--
Grant Schenck
http://grantschenck.tripod.com



"mak" <McDevil80@xxxxxxxxx> wrote in message
news:1139564110.621873.232640@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
if I want to change the loop with lineanswer checking line_reply
message to be sure the function works fine,how can I do?
I'm using event notification instead of callback function, so:

1. Lineanswer
2. ret = waitforsingleobject()
3.if(ret == WAIT_OBJECT)
4. lineGetMessage(g_hLineApp,&msg,timeout);
5. if (msg.dwParam1 == LINE_REPLY)
6. ......

is that the right sequence to use?I didn't understand WHERE a
line_reply message is placed after lineanswer finished.
thanks to all

marco



.



Relevant Pages

  • Every ASP.NET application - a multithreaded windows app?
    ... Then, a separate thread is issued to serve my page request, and it ... windows app which happens to listen on port 80? ... ASP.NET application, to process some complex tasks, and letting users use ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: asynchronous network access with Rack?
    ... I'm writing a Sinatra app which will build a page based on the ... responses of several servers. ... Can threading ... You are spawning a lot of threads per request and you have no real external ...
    (comp.lang.ruby)
  • Permissions Error
    ... I am able to run my Windows app from a local drive. ... Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0 ... it recommends I tweak the .Net Configuration wizard to adjust the security settings. ...
    (microsoft.public.dotnet.security)
  • Re: [SLE] scanner mustek scanexpress 1248 UB not detected
    ... PLEASE do not simply hit reply to a message, ... post your own request for help. ... This screws up the "threading" that many ...
    (SuSE)
  • Re: Smart pointer solution to this problem?
    ... > RJGraham wrote: ... > threading (stuff is pretty much totally busted on windows, ... are you suggesting not to use the Boost libraries for a multithreaded ... Windows app? ...
    (comp.lang.cpp)