We recommend using Visual Studio 2017

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.

  
      function AddCoclassFromFile(   
   oCM,   
   strCoclassFile    
);  

Parameters

oCM
The Visual C++ Code Model object.

strCoclassFile
The name of the template file, excluding the path.

Call this function to render and insert into the project's .idl file a template file containing a coclass.

// Render myproj.idl and insert into the project's .idl.  
AddCoclassFromFile(oCM, "myproj.idl");  

Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard

Show: