MSDN中描述DTE結構的示意圖如下:
VC
#pragma warning( disable :
//The following #import imports DTE based on its LIBID
#import
#pragma warning( default :
using namespace EnvDTE; // optional
//……
void Ct
{
CoInitialize(NULL);
{
_variant_t varRelease=L
_bstr_t bstrSlnPath=L
try
{
CComPtr
_Solution *pZFIVE
SolutionBuild *pZFIVE
SolutionConfigurations *pZFIVE
SolutionConfiguration *pZFIVE
pZFIVE
pZFIVE
if(pZFIVE
{
pZFIVE
goto ZFive
}
pZFIVE
VARIANT_BOOL var;
pZFIVE
if (var==VARIANT_TRUE)
{
pZFIVE
if(pZFIVE
{
pZFIVE
pZFIVE
pZFIVE
goto ZFive
}
pZFIVE
if(pZFIVE
{
pZFIVE
pZFIVE
pZFIVE
pZFIVE
pZFIVE
goto ZFive
}
pZFIVE
if(pZFIVE
{
pZFIVE
pZFIVE
pZFIVE
}
pZFIVE
pZFIVE
pZFIVE
pZFIVE
pZFIVE
pZFIVE
}
else
{
AfxMessageBox(
}
pZFIVE
pZFIVE
pZFIVE
}
catch(
{
AfxMessageBox(
}
}
ZFive
::CoUninitialize();
return;
}
From:http://tw.wingwit.com/Article/program/net/201311/11426.html