Compartir a través de


ConvertProjectToAttributed

Converts an ATL nonattributed project to attributed.

function ConvertProjectToAttributed( );

Return Value

true if the project was converted successfully; otherwise false.

Remarks

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

Example

// 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;
}

See Also

Tasks

Creating a Custom Wizard

Reference

CanAddNonAttributed

Concepts

Customizing C++ Wizards with Common JScript Functions

Designing a Wizard

Other Resources

JScript Functions for C++ Wizards