Overview | Documentation | C# | VB.NET | VB6 | C/C++ | Download
You application calls OCX Installer during application initialization, in the Main method of the application:
if (!Softelvdm.OCXInstaller.ProcessFile(true, _
"TestApp_CSharp", "Softel vdm, Inc.", _
@".\SftTree_IX86_U_60.ocx", "%WinSys", true, false))
return;
In order to have access to the assembly containing the OCX Installer, a reference to Softelvdm.OCXInstaller has to be added to the project:
VS 2003, 2005, 2008: Project, Add Reference... menu command, click Browse, locate the file OCXInstaller.Assembly.dll and add it. It is normally located at \Program Files\Softelvdm\OCX Installer\NET.
In order to debug/execute your application, make sure to copy all other required files (OCXes) to the folder containing your executable.
For all applications that include ActiveX controls, the .NET assembly stdole.dll must be distributed. This assembly is NOT part of the .NET runtime installation, so you have to insure it is included with your application. Other prerequisite files that are part of ActiveX controls, may also be updated accordingly (for example, Softelvdm.OCXHelper also must be distributed):
VS 2003, 2005, 2008: In your Solution Explorer window, expand the References. Right-click on the stdole entry and select Properties. Set Copy Local to True.