Originally Posted by
pitopito
Besides the serial port programming methods I need to UNDERSTAND what I am doing and why that error occurs...
Your project is set to use unicode character set. So first parameter of CreateFile functions is wchar_t* type and not char*. You need to use
CreateFile(L"COM1", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
CreateFile(L"COM1", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
To copy to clipboard, switch view to plain text mode
Bookmarks