Tuesday, 3 September 2013

How do you get the underlying SAFEARRAY from a CComSafeArray?

How do you get the underlying SAFEARRAY from a CComSafeArray?

pI tried the codeGetSafeArrayPtr()/code method which returns a
LPSAFEARRAY* that a typedef defined as:/p precodetypedef /* [wire_marshal]
*/ SAFEARRAY *LPSAFEARRAY; /code/pre pI thought I would be able to
directly assign this to a SAFEARRAY* variable but the compiler gives this
error:/p blockquote perror C2440: '=' : cannot convert from 'LPSAFEARRAY
*' to 'SAFEARRAY *'/p /blockquote pI found this strange. What am I doing
wrong here?/p pPS: I am doing this inside a C++/CLI dll./p

No comments:

Post a Comment