Share via


CCustomAppWiz::ProcessTemplate

OverviewsHow Do IDetails

Feature Only in Professional and Enterprise Editions   Creating a Custom AppWizard is supported only in Visual C++ Professional and Enterprise Editions. For more information, see .

virtual void ProcessTemplate( LPCTSTR lpszInput**, DWORD** dwSize**, OutputStream*** pOutput );

Parameters

lpszInput

A pointer, returned by CCustomAppWiz::LoadTemplate, to a custom resource template.

dwSize

The size of the custom resource template. Provided by the LoadTemplate function’s *rdwSize*****argument.

pOutput

A pointer to the stream that represents the destination of the output from ProcessTemplate.

Remarks

ProcessTemplate accepts a string, which is a custom resource template returned by LoadTemplate, parses the string, and passes the string back to MFCAPWZ.DLL through an output stream (pOutput).

When ProcessTemplate parses the string, it expands macros and obeys the MFC AppWizard directives. The result is usually a source file (such as an .H, .CPP, or .RC file) that can be placed directly into the structure of a new project or is a CONFIRM.INF file or a NEWPROJ.INF file. For more information on template parsing, see NEWPROJ.INF Statements.

The default, base-class version of ProcessTemplate uses the dictionary to expand macros.

You can implement new directives by overriding the default behavior of ProcessTemplate to parse them. For information on the standard MFC AppWizard directives, see Standard AppWizard Directives.

See Also   CCustomAppWiz Overview, Class Members, Understanding Custom Resource Templates, The Dictionary, Standard AppWizard Directives, Understanding CONFIRM.INF and NEWPROJ.INF, NEWPROJ.INF Statements, CCustomAppWiz::LoadTemplate, CCustomAppWiz::CopyTemplate, CCustomAppWiz::PostProcessTemplate