The OCX files must be registered in order to use them or to build the .NET samples. The installer does this automatically, but you can reregister or unregister them using Microsoft's regsvr32.exe utility or the ActiveX Test Container that comes with Visual Studio. The test container in Visual Studio under "Tools/ActiveX Test container" is the 32 bit version. 64 bit ocx files require the 64 bit version.
To register the OCX files with regsrv32.exe Utility, on both 32 bit and 64 bit operation systems do the following:
Open a Command Line window. Type in the folowing line to Register or Reregister the OCX:
regsvr32.exe "C:\folder\BiDIB.ocx"
To Un-register the OCX, use the folowing line:
regsvr32.exe /u "C:\folder\BiDIB.ocx"
To use the ActiveX controls from .NET applications in Visual Studio right-click on the References section of the project and select Add Reference from the context menu. Find the control you want to use on the COM page and click ok. By doing this, Visual Studio generates two runtime-callable wrappers, (Interop.*Lib.dll, AxInterop.*Lib.dll) making the COM object appear to .NET clients just as if it were a native .NET object.
When adding reference to the 64 bit controls, only one of the wrappers will be generated (Interop.*Lib.dll). This is enough for most of the controls, but some of them (BiDisp and BiThumbnail) require the more complex wrapper based on System.Windows.Forms.AxHost (AxInterop.*Lib.dll). To use these 64bit controls, use the TlbImp.exe utility shipping with Visual Studio to generate the files. We also provide these wrappers for you, they are located in the bin directory of your installations (Ax*Lib.dll, *Lib.dll). To use the manually generated wrappers, right-click on the References section of your project, select Add Reference from the context menu and find the files on the Browse page.