error c2760[
^] is a casting error, not likely to be thrown for
DECLARE_REGISTRY_RESOURCEID
, maybe its an error with the public
CComCoClass<>
template inheritance.
If you comment out the line before compiling, do you get the same error? That would tell you for sure it that's the line causing the error (you may get other errors).