Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Data trough RS 232 with visual C++

Status
Not open for further replies.

tibs

Junior Member level 2
Joined
Nov 29, 2001
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
130
visual c++ rs-232

Hi,

Does anyone know how to send a data via the rs 232 port with visual C++?

thanks.
 

neuralc

Full Member level 4
Joined
Nov 6, 2001
Messages
236
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,298
Activity points
2,202
Hi,

You can simply use the mscomm32.ocx component.
Go to -> Project -> Add to Project -> Components and Controls -> select folder 'Registered ActiveX Controls' -> select 'Microsoft Communications Control, version 6.0' (or any other version); next it will add in your project a Class (with default name 'CMSCOMM') with all you need for RS232 communications.

Notice: I have experienced many problems using NULL characters, so try to ensure that you don't use it.

Hope helps

NeuralC
 

tibs

Junior Member level 2
Joined
Nov 29, 2001
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
130
thank you very much for all of these answers!

I will try!

have a good day
 

ELECTRON

Member level 3
Joined
Sep 3, 2001
Messages
60
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,288
Activity points
296
hi all

have you Something about parallel port code for XP

VB or VC

bye haim

:oops:
 

revolt

Full Member level 2
Joined
Feb 3, 2002
Messages
121
Helped
4
Reputation
6
Reaction score
1
Trophy points
1,298
Activity points
1,008
Hi

To access the parallel port under
XP u need a driver.

Try port95nt from Scientific Software Tools, Inc.

www.sstnet.com
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top