Hi!
I have created a COM object called Collection in VC++.
I have now created another COM object called let's say Exchange, which has the following IDL:
[id(1), helpstring("method exchange now"
] HRESULT exchangeNow([in] IUnknown* coll1, [out, retval] IUnknown** coll2);
So basically what I want to do is pass one Collection into Exchange and get another Collection out.
So when I wanted to test it in VBScript I wrote the following:
----
Set collection1 = CreateObject("COMCollection.Collection"
set collection2 = CreateObject("COMCollection.Collection"
Set exchange1 = CreateObject("COMExchange.Exchange"
collection2 = exchange1.exchangeNow(collection1)
----
So when I tried this script I got the following error from the VB compiler:
Line: 5
Error: Expected end of statement
Anyone know why?
I have created a COM object called Collection in VC++.
I have now created another COM object called let's say Exchange, which has the following IDL:
[id(1), helpstring("method exchange now"
So basically what I want to do is pass one Collection into Exchange and get another Collection out.
So when I wanted to test it in VBScript I wrote the following:
----
Set collection1 = CreateObject("COMCollection.Collection"
set collection2 = CreateObject("COMCollection.Collection"
Set exchange1 = CreateObject("COMExchange.Exchange"
collection2 = exchange1.exchangeNow(collection1)
----
So when I tried this script I got the following error from the VB compiler:
Line: 5
Error: Expected end of statement
Anyone know why?