Method of converting an ocx file into an DLL file referenced by an C program
- 2020-05-10 18:38:11
- OfStack
1. Open an VS2008 or VS2010 command prompt (for this example, VS2008)
Copy ocx file to d:\Program Files\Microsoft Visual Studio 9.0\VC
2. Register the ActiveX control
regsvr32 IB_USBKEY.ocx
3. Compile the OCX file
aximp IB_USBKEY.ocx
Generate two dll files that refer to the Ax prefix in the project
4. Copy the two generated dll files into the project