jiatiejun
July 2nd, 2001, 09:49 AM
I had a ATL class,
It has a method,
the method retrieves a array,
for examples:
MyMethod([in] VARIANT myArray)
it can't work
when I create instance follow:
Dim x as Object
Set x = CreateObject("MyObjectID")
Dim a(10)
X.MyMethod a
but it work normally follow:
Dim x as New MyObjectTypeLib.MyObjectID
Dim a(10)
X.MyMethod a
Why?
Who can help me?
Thanks
jiatiejun
It has a method,
the method retrieves a array,
for examples:
MyMethod([in] VARIANT myArray)
it can't work
when I create instance follow:
Dim x as Object
Set x = CreateObject("MyObjectID")
Dim a(10)
X.MyMethod a
but it work normally follow:
Dim x as New MyObjectTypeLib.MyObjectID
Dim a(10)
X.MyMethod a
Why?
Who can help me?
Thanks
jiatiejun