AddInterfaceFromFile
Renders and inserts a template file that contains an interface.
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
Tasks
Concepts
Customizing C++ Wizards with Common JScript Functions