I have mscomm inputMode property set to 1 but all I receive is one no matter what I send to it. When I set the inputMode property to 0 and then read the input data as
in_dat = m_comm.GetInput();
buffer[i] = (*in_dat.bstrVal); // buffer is integer array
I get the right data but some bytes...
In my project, I display a message "Running" in the main pane of the status bar instead of "Ready" when a button is clicked. But when I click on a menu item and then back in the main window, the text changes back to "Ready". Any idea how to prevent it from doing so?
I use the following function...
Hi,
I for some reason cannot get any libraries to work in my visual c++ 6.0 MFC application. I included math library in different ways using <include.h>, "include.h", and copying the library to my project folder. But none of these methods seem to work. Whenever I use sqrt() function, it gives...
I have been trying to receive raw bytes on serial port using MScomm with visual C++6.0 but I don't know how to get the decimal or hex value from the function getInput(). I can get the string out of the function but then it becomes a character. For example if I receive 0x35, it becomes 5. Here...
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.