帮忙翻译几个函数! ( 积分: 100 )

  • 主题发起人 主题发起人 土土123
  • 开始时间 开始时间

土土123

Unregistered / Unconfirmed
GUEST, unregistred user!
c++类型的函数,h文件原型是这样的:
EXPORTS BOOL CALLBACK Open_Com(unsigned char cPort, DWORD dwBaudrate, char cData, char cParity, char cStop);
EXPORTS WORD CALLBACK Change_Baudrate(unsigned char cPort, DWORD dwBaudrate);
EXPORTS WORD CALLBACK Change_Config(unsigned char cPort, DWORD dwBaudrate, char cData, char cParity, char cStop);
EXPORTS BOOL CALLBACK Send_Receive_Cmd(unsigned char cPort, char szCmd[], char
szResult[], WORD wTimeOut, WORD wChksum, WORD *wT);
请大虾帮忙翻译成delphi的写法
 
procedure Open_Com(cPort: Byte;
dwBaudrate: DWORD;
cData, cParity, cStop: Char);
expert;
proedure Change_Baudrate(cPort: Byte;
dwBaudrate: DWORD);
expert;
procedure Change_Config(cPort: Byte;
dwBaudrate: DWORD;
cData, cParity, cStop: Char);
expert;
procedure Send_Receive_Cmd(cPort: Byte;
szCmd: array of Char;
szResult: array of Char;
wTimeOut, wChksum: Word;
wT: PWord);
expert;
 
后退
顶部