Serial Port Programming In C Language
Download Serial Port Programming in C++ for free. Moved to GitHub. This project has been moved to GitHub. See: https://github.com/crayzeewulf/libserial/.
Dear thanks for you source code and clear explanations about codes, i am using VS 2005 and i used your cods but it was not work, i send errors in the below: 1>------ Build started: Project: hello, Configuration: Debug Win32 ------ 1>Compiling. Hello, I have generated my code in eclipse ide. The code seems to running fine. I am able to open the serial port and able to receive the data too. But I am facing issues with the writing part. The application seems to getting stuck at WriteFile function. I tried checking the value of the status returned by this function but code seems to be getting stuck in WriteFile function itself as it never reaches the next part of the code.
Below is my implementation of WriteFile function in which transmitBuffer is a char type array. RetVal = WriteFile(portHandle, transmitBuffer, 10, &bytesTransmitted, NULL); Can somebody help?? • or to post comments.