Export (0) Print
Expand All

ConvertProjectToAttributed

Converts an ATL nonattributed project to attributed.

function ConvertProjectToAttributed( );

true if the project was converted successfully; otherwise false.

Call this function to convert an ATL project from nonattributed to attributed. See Attributed Programming for more information.

// 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;
}
Show:
© 2015 Microsoft