VCProjectEngineObjectClass::CreateProject Method (String^)

 

Creates a new project.

Namespace:   Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

public:
virtual Object^ CreateProject(
	String^ projectName
)

Parameters

projectName
Type: System::String^

Name of the project

Return Value

Type: System::Object^

An object.

Do not instantiate VCProjectEngineObjectClass. Instantiate VCProjectEngineObject instead, as shown below:

Dim Engine As VCProjectEngine
Engine = New VCProjectEngineObject()

' compile with vbc /r:Microsoft.VisualStudio.VCProjectEngine.dll
Option Strict Off
Imports Microsoft.VisualStudio.VCProjectEngine

Module Module1
Sub Main()
Dim Engine As VCProjectEngine
Dim myproj As VCProject
Engine = New VCProjectEngineObject()
myproj = Engine.CreateProject("xxxj")
myproj.ProjectFile("c:\Documents and Settings\test\xxx.vcproj");
myproj.Save()
End Sub    
End Module
Return to top
Show: