更新:2007 年 11 月
将 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;
}