im developing an sms application in embedded visual basic 3.0 and have the following problem
when i need to read sms using SmsReadMessage() i need to use the WaitforSingleObject() otherwise the Smsopen returns the error, cant open sms port. if i use WaitforSingleObject my application freezes. how can i run this in the background without freezing my application

thank

Re: Read sms without freezing the application by Chris

Chris
Fri Feb 20 13:40:34 CST 2004

Use WaitForSingleObject in an infinite loop with a zero timeout instead of
INFINITE and when the return is WAIT_OBJECT_), break out of the loop.
You'll probably need a DoEvents inside the loop too.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


"Mike Sher" <anonymous@discussions.microsoft.com> wrote in message
news:0CB25813-E24D-4761-BA8D-EE3EDAC7570D@microsoft.com...
> im developing an sms application in embedded visual basic 3.0 and have the
following problem:
> when i need to read sms using SmsReadMessage() i need to use the
WaitforSingleObject() otherwise the Smsopen returns the error, cant open sms
port. if i use WaitforSingleObject my application freezes. how can i run
this in the background without freezing my application?
>
> thank u
>