AddInterfaceFromFile

 

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 AddInterfaceFromFile.

Renders and inserts a template file that contains an interface.

Syntax

  
      function AddInterfaceFromFile(   
   oCM,   
   strInterfaceFile    
);  

Parameters

oCM
The Visual C++ Code Model object.

strInterfaceFile
The template file name only, excluding the path.

Remarks

Call this function to render and insert into the project's .idl file a template file that contains an interface.

If the interface is not added successfully, this function displays an error message.

Example

// Render myint.idl and insert into strProject.idl  
AddInterfaceFromFile(oCM, "myint.idl");  

See Also

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