VC provide any built-in class for serial communications? 
Author Message
 VC provide any built-in class for serial communications?

I know that VC has the MsComm control which I have used in VB, however I
would rather stay with a class or API calls.

I am primarily interested in a method whereby the reception of serial data
would cause an event to be fired that I could then use to call a receive
routine.  Instead of me polling the com port I would like the com port to
call me (like an Interrupt would).

I also know that I could create a thread to poll/read the com port and have
it call me back when data was received, however I was interested in a
built-in method if available.

Thanks in advamce for any help or suggestions.



Tue, 06 May 2003 03:00:00 GMT  
 VC provide any built-in class for serial communications?

Quote:
>I know that VC has the MsComm control which I have used in VB, however I
>would rather stay with a class or API calls.

Have a look at the MTTTY sample on MSDN. That's a fairly comprehensive
example of serial comms under Win32. There are no class wrappers in
VC++, but there are several available online - try the codeguru or
codeproject web sites.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Tue, 06 May 2003 03:00:00 GMT  
 VC provide any built-in class for serial communications?

Quote:

> I know that VC has the MsComm control which I have used in VB, however I
> would rather stay with a class or API calls.

> I am primarily interested in a method whereby the reception of serial data
> would cause an event to be fired that I could then use to call a receive
> routine.  Instead of me polling the com port I would like the com port to
> call me (like an Interrupt would).

> I also know that I could create a thread to poll/read the com port and have
> it call me back when data was received, however I was interested in a
> built-in method if available.

> Thanks in advamce for any help or suggestions.

Look in C++ developer's Journal's archives, in '97, I think. Look for
"woodruff". The site is probably http://www.wdj.com, but I'm not sure.


Tue, 06 May 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. serial communication and vc++5.0 please help

2. HELP! serial communication using VC

3. serial communication in vc 5.0

4. Serial Communications Class?

5. (VC) does VC and Winsock/Winsock2 provide ARP?

6. How to build a VC project with template class

7. Providing a callback to VB from VC

8. Providing a callback to VB from VC

9. Replacing Borland built dll with vc built dll

10. Automatically increment build number when building from VC++6

11. Build project builds every class

12. How to build setup program for VC application(VC 6.0)

 

 
Powered by phpBB® Forum Software