次の方法で共有


CreateStorageFromTemplatePath Method

 

Creates a new IProjectStorage Interface using the template bstrTemplateName contained in bstrProjectTemplatesPath.

Syntax

HRESULT CreateStorageFromTemplatePath(BSTR bstrProjectTemplatesPath,BSTR bstrTemplateName,BSTR bstrProjectName,IOptions* pCustomParameters,IProjectStorage** ppProjectStorage);  

Parameters

bstrProjectTemplatesPath

[in] Path to the vstax file.

bstrTemplateName

[in] The name of the template inside the vstax file from which IProjectStorage will be created.

bstrProjectName

[in] The name for the new project.

pCustomParameters

A pointer to a collection of pairs of template parameters and their values. Inside the created project, the values will be substituted in place of the corresponding template parameters.

ppProjectStorage

[out, retval] A new IProjectStorage based on the template bstrTemplateName.

Return Value

One of the standard HRESULT values.

Remarks

This method is defined in the file vsta.h.

Requirements

DLL VstaCore.dll
Library VstaCore.lib
Header Vsta.h

See Also

Functions (VSTA)