VCReferences::AddActiveXReference Method (String^, Int32, Int32, Int32, String^)
Visual Studio 2015
Adds an ActiveX (COM) reference to the project.
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Object^ AddActiveXReference( String^ typeLibGuid, int majorVersion, int minorVersion, int localeID, String^ wrapper )
Parameters
- typeLibGuid
-
Type:
System::String^
A string representing the type library GUID.
- majorVersion
-
Type:
System::Int32
An integer representing the major version number.
- minorVersion
-
Type:
System::Int32
An integer representing the minor version number.
- localeID
-
Type:
System::Int32
An integer representing the locale ID.
- wrapper
-
Type:
System::String^
A string representing the wrapper name. Can be blank.
One way to obtain the parameters for this method is to add the desired reference to your project, save the project, and then examine its .vcproj file. The parameters are listed under "ActiveXReference."
Show: