By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,994 Members | 2,073 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,994 IT Pros & Developers. It's quick & easy.

Visual Studio 2002 Add-in - Build Done Event

P: 6
Hi

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
  1. class BuildEventsSink : public IDispEventImpl<1, BuildEventsSink, &__uuidof(EnvDTE::_dispBuildEvents), &EnvDTE::LIBID_EnvDTE, 7, 0>
  2. {
  3. public:
  4.     BEGIN_SINK_MAP(BuildEventsSink)
  5.         SINK_ENTRY_EX(1, __uuidof(EnvDTE::_dispBuildEvents), 4, OnBuildDone) // Build Done event id:4, Build start: 3
  6.     END_SINK_MAP()
  7.  
  8.     void __stdcall OnBuildDone(EnvDTE::vsBuildScope Scope, EnvDTE::vsBuildAction Action);
  9. };
  10.  
The build done event calls the OnBuildDone method as expected and I have access to the Scope and Action which are very useful, but I would like to continue only if there were no build errors. I can't find anything like this, especially not in native C++.

This is the first ATL/COM stuff I've ever written, so I'm clueless :) Any help is appreciated
Jun 20 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.