Hi,
The 'move implementation to source file' drops the const modifier if COM macros are used.
In a header file:
class Test
{
public:
STDMETHOD(GetValue)(const wchar_t** val) const { return E_NOTIMPL; }
bool GetValue2(double** val) const { return false; }
};
If you execute the command on the GetValue function, you'll get this in the cpp file:
STDMETHODIMP Test::GetValue(const wchar_t** val)
{
return E_NOTIMPL;
}
Notice that const is missing from the end - the generated code will not compile. I am pleased to see that VAX know to convert STDMETHOD to STDMETHODIMP - very nice.
Doing the same operation on GetValue2 works fine.
Thanks,
Paul