Compartir a través de


CreateProject

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CreateProject.

Creates a C++ project.

Syntax

  
      function CreateProject(   
   strProjectName,   
   strProjectPath    
);  

Parameters

strProjectName
A string containing the project name.

strProjectPath
A string containing the project path.

Return Value

The project object.

Remarks

Call this function to create a C++ project that you can open in Visual Studio. If the wizard's context parameter WizardType is specified as vsWizardAddSubProject, the project is added as a subproject to the existing project. See ContextParams Enum for more information.

Example

See AddFilesToProject.

See Also

Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard