找回密码
 加入
搜索
查看: 1546|回复: 1

[AU3基础] 从vb里要转过来,这个代码怎么转?

[复制链接]
发表于 2011-2-11 02:16:46 | 显示全部楼层 |阅读模式
vb 里面的模块

Public Declare Function CVR_InitComm Lib "termb.dll" (ByVal Port As Long) As Integer


命令
botton1里的命令
Private Sub Command1_Click()
    'CVR_InitComm
       CVR_InitComm (1001)
End Sub

也就是调用 termb.dll 里的 CVR_InitComm (1001)命令
这个在au3里怎么写?
发表于 2011-2-11 02:33:06 | 显示全部楼层
DllCall ( "termb.dll", "int", "CVR_InitComm" ,"int",1001 )
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 13:33 , Processed in 0.074596 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表