visual c++ - ATL errors compiling 64-bit COM excel addin -
i have c++ atl com adding implements utility functions refer excel api:
void dosomething(ccomptr<excel::range> &mastercell) { // ... ccomptr<excel::range> cell = mastercell->offset[vertical][horizontal]; // ... }
when compiling excel addin x64 i'm getting lots of spurious errors such as:
cannot convert 'excel::range' 'atl::ccomptr<t>'
however, when compile win32 there no problem. helper utility functions not exposed excel udf's don't think this question applicable since function not have stdmethodimp
part.
any ideas?
thanks in advance.
ccomptr
accepts interface template argument, while range
dispinterface. need ccomptr<excel::irange>
instead.
Comments
Post a Comment