AddCoclassFromFile

Renders and inserts into the project's .idl file a template file containing a coclass.

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

Tasks

Creating a Custom Wizard

Concepts

Customizing C++ Wizards with Common JScript Functions

Designing a Wizard

Other Resources

JScript Functions for C++ Wizards