Вниз
Скачать: CL | DM;

_DCB структура COMM порта.   Найти похожие ветки 

← →
Ura   (2002-08-19 16:14) [0]

Разница в описании структур в Delphi и Windows?
Delphi
_DCB = packed record
DCBlength: DWORD;
BaudRate: DWORD;
Flags: Longint;
wReserved: Word;
XonLim: Word;
XoffLim: Word;
ByteSize: Byte;
Parity: Byte;
StopBits: Byte;
XonChar: CHAR;
XoffChar: CHAR;
ErrorChar: CHAR;
EofChar: CHAR;
EvtChar: CHAR;
wReserved1: Word;


Windows
typedef struct _DCB { // dcb
DWORD DCBlength; // sizeof(DCB)
DWORD BaudRate; // current baud rate
DWORD fBinary: 1; // binary mode, no EOF check
DWORD fParity: 1; // enable parity checking
DWORD fOutxCtsFlow:1; // CTS output flow control
DWORD fOutxDsrFlow:1; // DSR output flow control
DWORD fDtrControl:2; // DTR flow control type
DWORD fDsrSensitivity:1; // DSR sensitivity

DWORD fTXContinueOnXoff:1; // XOFF continues Tx
DWORD fOutX: 1; // XON/XOFF out flow control
DWORD fInX: 1; // XON/XOFF in flow control
DWORD fErrorChar: 1; // enable error replacement
DWORD fNull: 1; // enable null stripping
DWORD fRtsControl:2; // RTS flow control
DWORD fAbortOnError:1; // abort reads/writes on error
DWORD fDummy2:17; // reserved
WORD wReserved; // not currently used

WORD XonLim; // transmit XON threshold
WORD XoffLim; // transmit XOFF threshold
BYTE ByteSize; // number of bits/byte, 4-8
BYTE Parity; // 0-4=no,odd,even,mark,space
BYTE StopBits; // 0,1,2 = 1, 1.5, 2
char XonChar; // Tx and Rx XON character
char XoffChar; // Tx and Rx XOFF character
char ErrorChar; // error replacement character

char EofChar; // end of input character
char EvtChar; // received event character
WORD wReserved1; // reserved; do not use
} DCB;

Нужно присвоить поля fOutxDsrFlow, fOutX, fInX = 0;
А получаю _DCB в Delphi а там таких полей нет.


← →
DiamondShark ©   (2002-08-19 16:21) [1]

А нету в паскале битовых полей.
Все они запрятаны в поле Flags


← →
Ura   (2002-08-19 16:25) [2]

До этого я уже тоже дошел, что ини во Flags.
1. Их порядок в Flags?
2. Сколько они занимают битов?
3. ИНИ ЖЕ - DWORD (и некоторые = 2 могут быть)
4. И как же их присвоить !!!!! HELP!


← →
Ura   (2002-08-19 16:44) [3]

HELP!



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.011 c
6-95921
Nikollay
2002-06-20 18:59
2002.08.29
Как уменьшить размер пакета протокола FTP?


6-95933
sanilo
2002-06-19 12:51
2002.08.29
Одноранговая сеть;)


1-95844
MARcoDEN
2002-08-17 15:36
2002.08.29
Проблема со вставкой ProgressBar в StatusBar


1-95764
-= Like =-
2002-08-19 15:20
2002.08.29
TListView...


3-95721
SZap
2002-08-08 13:34
2002.08.29
Как сформировать запрос в TQuery




   Наверх