Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MFC VC++
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 at 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 at 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 at 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
0 OriginalGriff 454
1 Maciej Los 404
2 CPallini 185
3 Sergey Alexandrovich Kryukov 182
4 Richard MacCutchan 120
0 OriginalGriff 5,634
1 Sergey Alexandrovich Kryukov 4,763
2 Peter Leow 2,954
3 Maciej Los 2,614
4 DamithSL 2,465


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