Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

serail communication in vc++ v6.0

Status
Not open for further replies.

mankan

Programmer
Apr 17, 2002
3
CH
Hi,
Can anybody please help me.I am doing serial communication in vc++ and I have done the following:

createfile
DCB---parameter setting
writefile
readfile
close port.

But I would like to know whether I have to do DCB setting separately for transmission and reception? and I am not able to send the data...

If anyone has any code for the above that will be great help..

Thx in advance,
Mankan
 
You do not have to double the dcb.
You can find lots of examples in any search engine (google).
 
But I was able to do the programming only when I have put DCB separately for Tx,com1 and Rx,com2 port..and it worked..i don't know whether it is correct way to do or not..i searched all the search engines for the solution..but not able to locate one...

Hope more information would be help ful to me..

Thx in advance,

 
Is your application runing on two pc's?
 
no...i application is running on only one PC but I have configured for transmission and another for reception but the overall aim is to run on 2 different PC...can any one give more inputs..

Thx in advance,
 
How are you connecting the ports, with a NULL Modem?

William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top