Click here to Skip to main content
15,302,644 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
[id(0x60060001), helpcontext(0x000061aa)]
HRESULT GetComponents([in, out] SAFEARRAY(VARIANT) oAxisComponentsArray);

I want to know how to realize the COM in C++ with InvokeHelper.

1 solution

In the IDL file it should be [in, out] SAFEARRAY(VARIANT)* oAxisComponentsArray
In the .h and .cpp files it should be SAFEARRAY** oAxisComponentsArray


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900