I've migrated COM projects from VS2013 to VC2010 then encountered into one issue. In VC10 few method's signature is changed so header file generated is compatible with VC10 but not with VS13.
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IFileStr * This,
/* [in] */ REFIID riid,
/* [annotation][iid_is][out] */
__RPC__deref_out void **ppvObject);
In the third parameter "__RPC__deref_out" is getting added
and the one generated using VS2013 is like,
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IFileStr * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__COM_Outptr void **ppvObject);
Can any one suggest?