[an error occurred while processing this directive]
|
HANDLE port;
bool Success;
DCB dcb;port = CreateFile("LPT1",
GENERIC_WRITE | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, // FILE_FLAG_OVERLAPPED,
NULL);
Success = GetCommState(port, &dcb);
if (Success == FALSE ){
error();
Memo1->Lines->Add("Unable to retrieve the current control settings ");
goto ex;
}
Выдает ошибку "параметр задан не верно"
на команде GetCommState(port, &dcb)
Если открывать COM все работает
В чем разница ?
E-mail: info@telesys.ru