Not able to set stopbits using SetCommState()
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, Iam writing a ComPort related program. Iam setting the state of the com port using SetCommState(). Iam considering stop bits also. When I use 1 or 2 stop bits , SetCommState is working fine. But when I use 1.5 (ONE5STOPBITS), SetCommState() is not working, i.e its returning 0. Why is it not working?What changes should I make? Thank you. Ayesha