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++.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.