描述:
注册COM对象不一定要注册LIBID_Xxx吧?
解决方案1:
Remarks
The ITypeLibInfo object controls information about the properties contained in the specified type library such as its name, GUID, interfaces, location, and version. For example, using these properties, you could add the methods of a specified interface to a project. See the Visual Studio Implement Interface Wizard for an example.
Note See Interpreting Visual C++ Wizard Model Examples for more information about how properties are called in both the HTML and the default.js files of a custom wizard.
Requirements
Namespace: VCWIZLib
File: vcwiz.dll
Example
// From Visual Studio's Implement Interface Wizard
function AddTypeLibOption(oTypeLibsSelect, oTypeLib, strVersion)
{
var oOption = document.createElement("OPTION");
oOption.text = oTypeLib.Name + "<" + (strVersion.length ? strVersion : "1.0") + ">";
oOption.value = oTypeLib.Location;
oTypeLibsSelect.add(oOption);
}
See Also