Jump to content

Photo

Asynchronous comms in Windows


2 replies to this topic

#1 GroovyBee OFFLINE  

GroovyBee

    7800 Developer

  • 7,740 posts
  • Busy bee!
  • Location:North, England

Posted Mon Sep 27, 2010 4:29 PM

I've been bashing my head against a brick wall trying to get some asynchronous communications going in a VC++ Windows app. Basically I need to write some data and then receive 1 or more bytes of data under a timeout. Any help would be appreciated. I don't want to use an ActiveX control either. If only it was under DOS..... :ponder:

#2 Sub(Function(:)) ONLINE  

Sub(Function(:))

    Moonsweeper

  • 420 posts
  • Location:Athens, Greece

Posted Mon Oct 4, 2010 12:07 AM

I think this was the class I used in the past. Posted Image

I cannot find my modifications to the class for the receive time out Posted Image

But there is a timeout used in the receive routine WaitForSingleObject(). I think I messed with this, I do not have Windows machine set up to try and reconstruct what I did. sorry I cannot be of more help.

Fortunately it has been a long time since I have had to program Windows. Posted Image

#3 GroovyBee OFFLINE  

GroovyBee

    7800 Developer

  • Topic Starter
  • 7,740 posts
  • Busy bee!
  • Location:North, England

Posted Mon Oct 4, 2010 6:10 AM

Thanks for the link. I solved my problem eventually :D.




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users