I have an automation DLL (OPCdaauto.Dll) that implements several interfaces.
I add it using Add Reference command and all interfaces of the DLL are available.

But i cannot call functions that wait for a array of long.
Looking at the prototypes in the references browser (F2) the format is :


sub Remove(NumItems as Long, ServerHandles() as Long, Errors() as Long)




and i call the method like this:


dim numitems as long
dim serverhandles(10) as long
dim errors(10) as long
numitems=1
serverhandles(0)=1
errors(0)=0
items.Remove NumItems,serverhandles,errors
' i try too
items.Remove NumItems,serverhandles(),errors()




i have an exception with description :
Incompatible type

What could be my problem ?
How to exactly now what the dll is waiting for (i have no documentation) ?

thanx