作者fashionjack (神奇杰克)
看板Visual_Basic
标题Re: [VB6 ] 请问可以用activeX 让两程序互相沟通吗?
时间Thu Jan 28 06:21:49 2016
好像大约如此,太久了忘惹...
ClassUse compiler 成dll 并且完成注册程序
standard exe:
Public Function Class_Initialize(AA As Integer, QQ As Double) As Long
A = AA
Q = QQ
A = Q ;或 Q = A 依需求
End Function
※ 引述《gecer (gecer)》之铭言:
: 如题
: 小弟编写一个activeX 里面带一个class
: Name "ClassUse"
: =================================================================
: Option Explicit
: Public A As Integer
: Public Q As Double
: Private Sub Class_Initialize()
: A = 0
: Q = 0
: End Sub
: Public Function AQ_Set(AA As Integer, QQ As Double) As Long
: A = AA
: Q = QQ
: End Function
: ===============================================================
: 然後另外写两个standard exe (main1 ,main2) 去reference 这一个activeX
: 小弟想要 main1 让 ClassUse.A=3 後 main2的ClassUse.A读到也会是3
: 请问这可以做到吗? 小弟查 MSDN class instancing property
: https://msdn.microsoft.com/en-us/library/aa234184%28v=vs.60%29.aspx
: 请问选择某个property 後 可以达到两程序互相沟通的功能吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 122.116.237.172
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Visual_Basic/M.1453933312.A.56D.html
※ 编辑: fashionjack (122.116.237.172), 01/28/2016 06:24:53