Click here to Skip to main content
12,507,674 members (56,033 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: MFC VisualC++
Hi,
I am developing a project in VC++ 2010 MFC. I need Serial Port
Communication Control like MSCOMM32.ocx of VC++ 6.0.
For MFC based application which control can I use?
I tried to register MSCOMM32.ocx ,but it fails to register
as I am using Windows 7.0
Posted 16-Nov-12 0:30am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Such an old OCX control should not be used anymore.

You may use the Windows API Communication Functions[^] to implement serial communication yourself.

Because serial communication is often not a simple task, have also a look on articles and classes providing a simpler interface. Use the Search function here at CodeProject to find one that matches your requirements: mfc c++ serial port[^].

Even if you did not find what you want, the sources may be helpful to understand serial communication.
  Permalink  
Comments
Andy411 16-Nov-12 10:02am
   
Out of my experience I full agree with you, that serial communication is often not a simple task. It can become very tricky!
adityarao31 16-Nov-12 23:22pm
   
Thank you very much for your Answer
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Is this what you are looking for?...

CSerialPort v1.03 - Serial Port Wrapper[^]
  Permalink  
Comments
adityarao31 16-Nov-12 23:22pm
   
Thank you very much for your Answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100