ConvertProjectToAttributed
將 ATL 非屬性化專案轉換成屬性化專案。
function ConvertProjectToAttributed( );
傳回值
如果成功地轉換專案則為 True,否則為 False。
備註
呼叫此函式將 ATL 專案從非屬性化轉換成屬性化。 如需詳細資訊,請參閱屬性化程式設計。
範例
// Create a function called CheckAddtoProject.
function CheckAddtoProject(oProj)
{
// Is the project attributed already?
try
{
if (!IsAttributedProject(wizard))
{
// If the project is not converted to attributed, return false.
if (!ConvertProjectToAttributed(oProj))
return false;
}
}
catch (e)
{
var L_ErrMsg1_Text = "Error in CheckAddtoProject: ";
wizard.ReportError( L_ErrMsg1_Text + e.description);
return false;
}
return true;
}