[VB6 ] 请问可以用activeX 让两程序互相沟通吗?

楼主: gecer (gecer)   2016-01-24 19:39:04
如题
小弟编写一个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 后 可以达到两程序互相沟通的功能吗?

Links booklink

Contact Us: admin [ a t ] ucptt.com