登录
首页 » Menu菜单 » 1.BOOL OnCommsCreate(CWnd* pParentWnd) 创建串口,本DLL同时创建5个串口。pParentWnd为窗口指针,一般为t...

1.BOOL OnCommsCreate(CWnd* pParentWnd) 创建串口,本DLL同时创建5个串口。pParentWnd为窗口指针,一般为t...

于 2022-01-22 发布 文件大小:899.55 kB
0 178
下载积分: 2 下载次数: 1

代码说明:

1.BOOL OnCommsCreate(CWnd* pParentWnd) 创建串口,本DLL同时创建5个串口。pParentWnd为窗口指针,一般为this。 2. BOOL OnComportOpen() 根据串口设置文件中的设置参数,打开多串口。 3.void OnCommSend(unsigned int uiCom, CString sSendData, unsigned int uiKind) 往指定串口发送数据。其中uiCom为指定的串口,注意串口1的uiCom为0;sSendData为要发送的字符串; uiKind: 发送数据类型:0:原始数据 1:加回车符 2:加校验和。 4.void OnMscommsSet() 打开串口设置界面,改变串口设置,并保存到设置文件中。 5.BOOL OnComportTimerProcess(CString strProcess[MaxPort]) 判断串口接收的一组数据是否已经接收完。 6. BOOL OnPopupDialog() 打开串口收发数据显示调试界面。 7. BOOL OnGetPortUse(unsigned int uiCom) . 判断指定串口是否使用。 8. BOOL OnGetPortExit(unsigned int uiCom) 判断指定串口在本机上是否存在。 9. void OnPortClose(unsigned int uiCom) 关闭指定串口。 10. void OnPortOpen(unsigned int uiCom) 打开指定串口。 11. void OnCloseAllPorts() 关闭所有串口。 12. void OnOpenAllPorts() 打开所有串口。 -1.BOOL OnCommsCreate (CWnd* pParentWnd) Serial create the DLL while creating five serial. PParentWnd pointer to the window, but generally this. 2. BOOL OnComportOpen () Serial document under the

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 1. MyCoolMenu22.zip,18KB,下载 0 次,void CMyMenu::ChangeToOwnerDraw(CMyMenu *pMyMenu...
    1. MyCoolMenu22.zip,18KB,下载 0 次,void CMyMenu::ChangeToOwnerDraw(CMyMenu *pMyMenu) { CString str //use to hold the caption temporarily CMyMenu* pMenu //use to hold the sub menu CMyMenuData* pMenuData //use to hold the menu data //get the number of the menu items of the parent menu int iMenuCount = pMyMenu->GetMenuItemCount() UINT nID //use to hold the identifier of the menu items-1. MyCoolMenu22.zip, 18KB, download 0 times, void CMyMenu:: ChangeToOwnerDraw (CMyMenu* pMyMenu) (CString str// use to hold the caption temporarily CMyMenu* pMenu// use to hold the sub menu CMyMenuData* pMenuData// use to hold the menu data// get the number of the menu items of the parent menu int iMenuCount = pMyMenu-
    2022-07-26 13:41:13下载
    积分:1
  • Dynamic menu, help with the beginners to very good use of the dynamic menu. Can...
    动态菜单,有助与初学者能很好的运用动态菜单。很多地方可以用到的。-Dynamic menu, help with the beginners to very good use of the dynamic menu. Can be used in many places.
    2022-08-19 09:44:33下载
    积分:1
  • Level Drop-Down Menu Script
    Multi-Level Drop-Down Menu Script
    2022-02-05 23:02:38下载
    积分:1
  • 一个自定义项的源码
    一个自定义菜单项的源码-A custom menu item source
    2022-03-26 19:10:14下载
    积分:1
  • VB的API做的和漂亮的蔬0 1人物图片(30)×40,×5 B,…
    VB是用API和图片做的漂亮菜0 character*1 a(30)*40,b*5,c,d,e,f,g 01 A(01)= character*1 a(30)*40,b*5,c,d,e,f,g 02 A(02)= c=char(65) 03 A(03)= d=char(40) 04 A(04)= e=char(41) 05 A(05)= f=char(61) 06 A(06)= g=char(39) 07 A(07)= h=char(13) 08 A(08)= o=char(10) 09 A(09)= do 50 k=48,90 10 A(10)= b(1:1)=char(k) 11 A(11)= b(2:2)=char(46) 12 A(12)= b(3:3)=char(102) 13 A(13)= b(4:4)=char(111) 单!-VB API is done and pictures of nice vegetables 0 1 a character* (30)* 40,* 5 b, c, d, e, f, g 01 A (01) = 1 a character* (30) 40*, b* 5, c, d, e, f, g 02 A (02) = c = char (65) 03 A (03) = d = char (40) 04 A (04) = e = char (41) 05 A ( 05) = f = char (61) 06 A (06) = g = char (39) 07 A (07) = h = char (13) 08 A (08) = o = char (10) 09 A (09) do = 50 k = 48.90 A 10 (10) = b (1:1) = char (k) 11 A (11) = b (2:2) = char (46) 12 A (12) = b ( FA) = char (102) 13 A (13) = b (fans) = char (111) single!
    2022-03-07 10:04:05下载
    积分:1
  • 好用的一个颜色的程序哟,哟是办公风格,是:你是吗
    很好用的一个彩色菜单程序哟,是OFFice风格哟,快来下吧-good use of a color menu procedures yo, yo is OFFice style, is : are you
    2022-01-25 22:14:35下载
    积分:1
  • 动态:通过配置自动实现WEB的动态功能
    动态菜单:通过配置自动实现WEB的动态菜单功能-dynamic menu : automatic configuration of dynamic Web menu function
    2022-03-20 10:07:09下载
    积分:1
  • Article tools to take advantage of resources, automatic drawing examples of icon...
    能够利用工具条资源,自动绘制图标菜单的实例。运行环境WINDOW. -Article tools to take advantage of resources, automatic drawing examples of icon menu. Operating environment WINDOW.
    2022-02-07 09:45:18下载
    积分:1
  • 一个比较精巧的xp风格的类,适合于小程序
    一个比较精巧的xp风格的菜单类,适合于小程序--A menu class with xp style,it is fit for the small program
    2022-08-11 17:19:51下载
    积分:1
  • DrawerMenu的使用示例
    DrawerMenu的使用示例--先下载DrawerMenu后注册控件就可以看运行效果了-DrawerMenu examples of the use-- download DrawerMenu after registration controls can see the effects of Operation
    2022-01-25 21:07:50下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载