AddCoclassFromFile
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 AddCoclassFromFile.
Renders and inserts into the project's .idl file a template file containing a coclass.
Syntax
function AddCoclassFromFile(
oCM,
strCoclassFile
);
Parameters
oCM
The Visual C++ Code Model object.
strCoclassFile
The name of the template file, excluding the path.
Remarks
Call this function to render and insert into the project's .idl file a template file containing a coclass.
Example
// Render myproj.idl and insert into the project's .idl.
AddCoclassFromFile(oCM, "myproj.idl");
See Also
Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard