I am currently working on a project that uses the MSComm control to access the serial port on a windows 2k machine. I have the program working great for the main dialog, but when I open one of the other "pop-up" dialogs, I lose the ability to use the MSComm control in the new pop-up...
Here is some example code that I used to send and receive bytes of data through a serial port. I used safe arrays to retrieve the data from the receive buffer.
// Receive data message via serial port
// Must store "data messages" in a SafeArray variable
HRESULT hr;
long lLen;
BYTE*...
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.