port communication using mfc
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
how to communciate with a serial or com or usb port using mfc
-
how to communciate with a serial or com or usb port using mfc
You don't You use ::CreateFile and give it a name such as "COM3:" If you want to talk to a USB port you have to make sure your USB device offeres a device in the serial port (or modem) class in its ACL to get a COM port assigned to it You probably can use CFile to do the same, but ive never tried. There are numerious serial port wrapper classes on CP and www.codeguru.com