SAFEARRAY Argument Problems
ATL Wizard cannot handle SAFEARRAYs, but ATL code can. Just write your
method manually into .idl, .h and .cpp files for your class. It's time to
learn doing COM without the wizards.
--
With best wishes,
Igor Tandetnik
Quote:
> I tried to declare a new method on my ATL object. I called it GetData and
> entered the following parameter information.
> GetData
> [out] SAFEARRAY(int)* psa
> I also tried a few variations on the above but each time when I hit OK I
got
> the following message:
> Microsoft Visual C++
> Unable to create the function because the header or the implementation
file
> could not be found.
> Could anyone help me understand this? Can I access a SAFEARRAY from ATL?
> Thanks.
> --
> Jonathan Wood
> SoftCircuits Programming
> http://www.softcircuits.com