ThreadComm.h
资源名称:第6章 多线程编程.rar [点击查看]
上传用户:gyjjlc
上传日期:2013-03-29
资源大小:2124k
文件大小:1k
源码类别:
多显示器编程
开发平台:
C++ Builder
- //---------------------------------------------------------------------------
- #ifndef ThreadCommH
- #define ThreadCommH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- //---------------------------------------------------------------------------
- class ThreadComm : public TThread
- {
- private:
- AnsiString recvBuffer;
- protected:
- void __fastcall Execute();
- void __fastcall AddToMemo(void);
- public:
- bool __fastcall SendOneByte(void);
- //发送缓冲区
- AnsiString sendBuffer;
- //发送缓冲区的计数器,减1计数器
- int sendCount;
- __fastcall ThreadComm(bool CreateSuspended);
- };
- //---------------------------------------------------------------------------
- #endif
English
