VB和VC之间数组参数传递问题 自己写了一个VB的OCX 需要VC 调用并传入参数 具体如下
无限放飞 2007-12-19 09:47:33 Public Sub ReadTagNames(ByVal tagNames As Variant, ByVal tagDescription As Variant)
ReDim Preserve strTagName(TagCount) As String
ReDim Preserve tagDes(TagCount) As String
Dim i As Integer
With MSHFlexGrid1
For i = 0 To TagCount - 1
strTagName(i) = tagNames(i)
tagDes(i) = tagDescription(i)
.TextMatrix(i + 1, 0) = i + 1
.TextMatrix(i + 1, 1) = tagDes(i)
.TextMatrix(i + 1, 2) = "OFF"
Next i
End With
timerShow.Enabled = True
Dim a As Long
Set objRTDB = New RTDB_ATLLib.Client
a = objRTDB.Initialize()
End Sub
这是VB里面OCX的方法 VC要向该方法传递字符串数组 请问如何传递进来~~谢谢~~