i use the following code to send a word to com1,
WORD wCommand=0x0D0A;
WriteFile(hComm,&wCommand,sizeof(WORD), &dwWritten, &osWrite);
at the com2,i receive the data,but the order changes to 0A0D,why?
How should i do to solve this problem?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Thread: Serial Communications problemsThreaded View
|
Click Here to Expand Forum to Full Width |