大家用过SerialPort类没有,小弟我现在建了一个Dll的工程,加进去之后就一直抱错,还需要改蛇呢没地方吗

大家用过SerialPort类没有,我现在建了一个Dll的工程,加进去之后就一直抱错,还需要改蛇呢没地方吗?
df417ddl.cpp
E:\project\printerddl\SerialPort.h(25) : error C2146: syntax error : missing ';' before identifier 'InitPort'
E:\project\printerddl\SerialPort.h(25) : error C2501: 'BOOL' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(25) : error C2061: syntax error : identifier 'CWnd'
E:\project\printerddl\SerialPort.h(26) : error C2146: syntax error : missing ';' before identifier 'm_hComm'
E:\project\printerddl\SerialPort.h(26) : error C2501: 'HANDLE' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(26) : error C2501: 'm_hComm' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(29) : error C2146: syntax error : missing ';' before identifier 'StartMonitoring'
E:\project\printerddl\SerialPort.h(29) : error C2501: 'BOOL' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(30) : error C2146: syntax error : missing ';' before identifier 'RestartMonitoring'
E:\project\printerddl\SerialPort.h(30) : error C2501: 'BOOL' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(31) : error C2146: syntax error : missing ';' before identifier 'StopMonitoring'
E:\project\printerddl\SerialPort.h(31) : error C2501: 'BOOL' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(33) : error C2146: syntax error : missing ';' before identifier 'GetWriteBufferSize'
E:\project\printerddl\SerialPort.h(33) : error C2501: 'DWORD' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(34) : error C2146: syntax error : missing ';' before identifier 'GetCommEvents'
E:\project\printerddl\SerialPort.h(34) : error C2501: 'DWORD' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(35) : error C2146: syntax error : missing ';' before identifier 'GetDCB'
E:\project\printerddl\SerialPort.h(35) : error C2501: 'DCB' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(39) : error C2061: syntax error : identifier 'LPCTSTR'
E:\project\printerddl\SerialPort.h(40) : error C2061: syntax error : identifier 'LPCTSTR'
E:\project\printerddl\SerialPort.h(40) : error C2535: 'void __thiscall CSerialPort::WriteToPort(void)' : member function already defined or declared
  E:\project\printerddl\SerialPort.h(39) : see declaration of 'WriteToPort'
E:\project\printerddl\SerialPort.h(45) : error C2146: syntax error : missing ';' before identifier 'CommThread'
E:\project\printerddl\SerialPort.h(45) : error C2061: syntax error : identifier 'LPVOID'
E:\project\printerddl\SerialPort.h(46) : error C2061: syntax error : identifier 'COMSTAT'
E:\project\printerddl\SerialPort.h(50) : error C2143: syntax error : missing ';' before '*'
E:\project\printerddl\SerialPort.h(50) : error C2501: 'CWinThread' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(50) : error C2501: 'm_Thread' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(53) : error C2146: syntax error : missing ';' before identifier 'm_csCommunicationSync'
E:\project\printerddl\SerialPort.h(53) : error C2501: 'CRITICAL_SECTION' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(53) : error C2501: 'm_csCommunicationSync' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(54) : error C2146: syntax error : missing ';' before identifier 'm_bThreadAlive'
E:\project\printerddl\SerialPort.h(54) : error C2501: 'BOOL' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(54) : error C2501: 'm_bThreadAlive' : missing storage-class or type specifiers
E:\project\printerddl\SerialPort.h(57) : error C2146: syntax error : missing ';' before identifier 'm_hWriteEvent'
E:\project\printerddl\SerialPort.h(57) : error C2501: 'HANDLE' : missing storage-class or type specifiers