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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want to use OpenComm, WriteComm...

Status
Not open for further replies.

Jiko

Technical User
Apr 5, 2002
35
SE
Trying to do serial communication, want to use OpenComm, WriteComm in my program, but always get this answer:
error C2065: 'OpenComm' : undeclared identifier
Do I have to include any files or isn't it possible to use this word in Visual C++.
 
hi

not quite sure if that the correct command check out the vcterm sample application that ships with visual studios as the does alot of Com port stuff and thats what im using!

hope this guides you along the right direction!
Sanj
 
It os possible to use CreateFile, ReadFile, WriteFile and CloseHandle for serial communication. A few other API calls are available for serial communication for changing baudrate etc. Look for SetCommState in the SDK documentation and you will find it.

Marcel
 
I had your problem, and I used an activeX (MSComm 6).
You can easily write and read,m and it is easier to change the connection properties.....

I think its the best choice for normal use of serial port.

(This activeX is even in the vcterm example)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top