作者gecer (gecer)
看板Visual_Basic
标题[VB6 ] 请问可以用activeX 让两程序互相沟通吗?
时间Sun Jan 24 19:39:04 2016
如题
小弟编写一个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), 来自: 111.255.247.106
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Visual_Basic/M.1453635549.A.268.html