safearray in COM
I have a method in my COM API with a parameter SAFEARRAY.
So in my idl
mymethod(SAFEARRAY(VARIANT)* mysafearray)
in the .h file
mymethod(SAFEARRAY** mysafearray).
This work fine. But now i am using an attributed ATL project which does not use the idl to declare the method instead in the .h file itself.
In that case my declaration of the method with
Safearray(VARIANT)* mysafearray
does not compile.
I get c2143 syntax error:missing',' before'*'
error 3763 safearray retval and out can only appear on a data-pointer type.
Any help anyone? i tried using safearray** in the declaration and anything and everything and nothing seems to compile my code.

