I've tested the PVS-Studio 4.0 analyzer with some of the projects from Codeplex.
While analyzing this project I've found some mistake:
V529 Odd semicolon ';' after 'while' operator. CputAddin9 testgrouphandler.cpp 25
while ((FALSE == IsNameUsedInProject(
m_bstrGroupName, m_spTestProject, m_spTestGroupElement))
&& (nAttempt < 100)); // <<-- here
//after creation it seems there is a need in pause to allow DTE parse new item in code model
//it would be wonderful to know event or statuc property that could be used as a signal