I was wondering if anyone knows of a way to get the number of build errors and warnings once studio has posted an event and my add-in has caught it.
The class implementing the sink is:
Expand|Select|Wrap|Line Numbers
- class BuildEventsSink : public IDispEventImpl<1, BuildEventsSink, &__uuidof(EnvDTE::_dispBuildEvents), &EnvDTE::LIBID_EnvDTE, 7, 0>
- {
- public:
- BEGIN_SINK_MAP(BuildEventsSink)
- SINK_ENTRY_EX(1, __uuidof(EnvDTE::_dispBuildEvents), 4, OnBuildDone) // Build Done event id:4, Build start: 3
- END_SINK_MAP()
- void __stdcall OnBuildDone(EnvDTE::vsBuildScope Scope, EnvDTE::vsBuildAction Action);
- };
This is the first ATL/COM stuff I've ever written, so I'm clueless :) Any help is appreciated