串口的创建函数_第1页
串口的创建函数_第2页
串口的创建函数_第3页
串口的创建函数_第4页
串口的创建函数_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、转载VC+6.0 / CMSComm.h : Declaration of ActiveX Control wrapper class(es) created by Microsoft Visual C+#pragma once/ CMSCommclass CMSComm : public CWndprotected:DECLARE_DYNCREATE(CMSComm)public:CLSID const& GetClsid()static CLSID const clsid= 0x648A5600, 0x2C6E, 0x101B, 0x82, 0xB6, 0x0, 0x0, 0x0, 0x0

2、, 0x0, 0x14 ;return clsid;virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL) return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); BOOL Create(LPCTSTR lpszWindowNa

3、me, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE,BSTR bstrLicKey = NULL) return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,pPersist, bStorage, bstrLicKey); / Attributespublic:/ Operationspublic:void put_CDHol

4、ding(BOOL newValue)static BYTE parms = VTS_BOOL ;InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);BOOL get_CDHolding()BOOL result;InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);return result;void put_CDTimeout(long newValue)static BYTE parms = VTS_I4 ;

5、InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);long get_CDTimeout()long result;InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);return result;void put_CommID(long newValue)static BYTE parms = VTS_I4 ;InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL

6、, parms, newValue);long get_CommID()long result;InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);return result;void put_CommPort(short newValue)static BYTE parms = VTS_I2 ;InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);short get_CommPort()short result;In

7、vokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);return result;void put_CommPort(short newValue)static BYTE parms = VTS_I2 ;InvokeHelper(0x0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);short get_CommPort()short result;InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_I2, (void

8、*)&result, NULL);return result;void put_CTSHolding(BOOL newValue)static BYTE parms = VTS_BOOL ;InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);BOOL get_CTSHolding()BOOL result;InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);return result;void put_CTSTi

9、meout(long newValue)static BYTE parms = VTS_I4 ;InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);long get_CTSTimeout()long result;InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);return result;void put_DSRHolding(BOOL newValue)static BYTE parms = VTS_BOOL

10、;InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);BOOL get_DSRHolding()BOOL result;InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);return result;void put_DSRTimeout(long newValue)static BYTE parms = VTS_I4 ;InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMP

11、TY, NULL, parms, newValue);long get_DSRTimeout()long result;InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);return result;void put_DTREnable(BOOL newValue)static BYTE parms = VTS_BOOL ;InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);BOOL get_DTREnable()B

12、OOL result;InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);return result;void put_Handshaking(long newValue)static BYTE parms = VTS_I4 ;InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);long get_Handshaking()long result;InvokeHelper(0xa, DISPATCH_PROPERT

13、YGET, VT_I4, (void*)&result, NULL);return result;void put_InBufferSize(short newValue)static BYTE parms = VTS_I2 ;InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);short get_InBufferSize()short result;InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);return

14、result;void put_InBufferCount(short newValue)static BYTE parms = VTS_I2 ;InvokeHelper(0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);short get_InBufferCount()short result;InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);return result;void put_Break(BOOL newValue)stat

15、ic BYTE parms = VTS_BOOL ;InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);BOOL get_Break()BOOL result;InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);return result;void put_InputLen(short newValue)static BYTE parms = VTS_I2 ;InvokeHelper(0xe, DISPATCH_

16、PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);short get_InputLen()short result;InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);return result;void put_Interval(long newValue)static BYTE parms = VTS_I4 ;InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);long

17、get_Interval()long result;InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);return result;void put_NullDiscard(BOOL newValue)static BYTE parms = VTS_BOOL ;InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);BOOL get_NullDiscard()BOOL result;InvokeHelper(0x10,

18、 DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);return result;void put_OutBufferSize(short newValue)static BYTE parms = VTS_I2 ;InvokeHelper(0x11, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);short get_OutBufferSize()short result;InvokeHelper(0x11, DISPATCH_PROPERTYGET, VT_I2, (void*

19、)&result, NULL);return result;void put_OutBufferCount(short newValue)static BYTE parms = VTS_I2 ;InvokeHelper(0x12, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);short get_OutBufferCount()short result;InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);return result;void p

20、ut_ParityReplace(LPCTSTR newValue)static BYTE parms = VTS_BSTR ;InvokeHelper(0x13, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);CString get_ParityReplace()CString result;InvokeHelper(0x13, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);return result;void put_PortOpen(BOOL newValue)st

21、atic BYTE parms = VTS_BOOL ;InvokeHelper(0x14, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);BOOL get_PortOpen()BOOL result;InvokeHelper(0x14, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);return result;void put_RThreshold(short newValue)static BYTE parms = VTS_I2 ;InvokeHelper(0x15,

22、 DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);short get_RThreshold()short result;InvokeHelper(0x15, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);return result;void put_RTSEnable(BOOL newValue)static BYTE parms = VTS_BOOL ;InvokeHelper(0x16, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms

23、, newValue);BOOL get_RTSEnable()BOOL result;InvokeHelper(0x16, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);return result;void put_Settings(LPCTSTR newValue)static BYTE parms = VTS_BSTR ;InvokeHelper(0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);CString get_Settings()CString r

24、esult;InvokeHelper(0x17, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);return result;void put_SThreshold(short newValue)static BYTE parms = VTS_I2 ;InvokeHelper(0x18, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);short get_SThreshold()short result;InvokeHelper(0x18, DISPATCH_PROPERTY

25、GET, VT_I2, (void*)&result, NULL);return result;void put_Output(VARIANT newValue)static BYTE parms = VTS_VARIANT ;InvokeHelper(0x19, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, &newValue);VARIANT get_Output()VARIANT result;InvokeHelper(0x19, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);return result;void put_Input(VARIANT newValue)static BYTE parms = VTS_VARIANT ;InvokeHelper(0x1a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, &newValue);VARIANT get_Input()VARIANT result;InvokeHelper(0x1a, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NU

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论