By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,183 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,183 IT Pros & Developers. It's quick & easy.

serial port communication in C++ MFC

P: n/a
Hi,

I need to interface a signal generator with my computer's serial port ( to
set the frequency, level etc using the appropriate byte codes). How can I
send and receive (acknowledge the message sent - successful/unsuccessful)
data throught the serial port (RS232) in MFC? Some sample code would be
most appreciated!

Regards,
F.

Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
fdunne2 wrote:

Hi,

I need to interface a signal generator with my computer's serial port ( to
set the frequency, level etc using the appropriate byte codes). How can I
send and receive (acknowledge the message sent - successful/unsuccessful)
data throught the serial port (RS232) in MFC? Some sample code would be
most appreciated!


Sorry, your question is not about standard C++ but about accessing
a special property (serial port) in your computer (windows-computer)
using a specific development environment (mfc). Thus you should
ask in a newsgroup dedicated to one of this topics.

But the simple answer is: Today it is pretty easy to find
information, you just need to search for it:

http://www.google.com
search phrase: serial port mfc

brings up ~25000 hits
The second one looks extremely promising.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #2

P: n/a
you can find a sample MFC serial communications program with complete
source code at the following URL:
http://www.taltech.com/freesoftware/fs_sw.htm

On Thu, 03 Jun 2004 07:23:21 -0400, "fdunne2"
<fd*****@nospam.yahoo.ie> wrote:
Hi,

I need to interface a signal generator with my computer's serial port ( to
set the frequency, level etc using the appropriate byte codes). How can I
send and receive (acknowledge the message sent - successful/unsuccessful)
data throught the serial port (RS232) in MFC? Some sample code would be
most appreciated!

Regards,
F.


Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.