COM and Collections in method: argument type mismatch

Hi,

I have a COM object which has a method and implemented in MSVB. Calling it causes an error to be thrown. How do I pass collections IN/OUT ?

MyCOMClass.GetEmailIDs(byref emailIDs as Collection) 'In MSVB

Calling it causes the the following error message:

Automation object argument type mismatch.

Code example:

Lotus script:

dim xObj as variant

set xObj = CreateObject(“MyDll.MyCOMClass”)

dim emailIds as variant

xObj.GetEmailIds(emailIds)

Thanks,

– Rajesh