Click here to Skip to main content
11,580,580 members (71,558 online)
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 1,088
1 Sergey Alexandrovich Kryukov 750
2 Abhinav S 638
3 Suvendu Shekhar Giri 433
4 F-ES Sitecore 420


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2015
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