How to convert ocx into DLL

Showing Answers 1 - 5 of 5 Answers

rajgangina

  • Apr 12th, 2006
 

Hi I guess you cannot convert OCX to dll becoz dll do not have GUI interfaces .IF your ocx does not have GUI and you have convert manuly by cut and paste from OCX to Dll project

  Was this answer useful?  Yes

WiredPunk

  • Apr 17th, 2006
 

Use aximp.exe. 

  Was this answer useful?  Yes

use the aximp.exe provided with the .NET framework.

It stands for Microsoft .NET ActiveX Control to Windows Forms Assembly Generator.

Generates a Windows Forms Control that wraps ActiveX controls defined in the given OcxName.

Usage:
   AxImp OcxName [Options]
Options:
   /out:FileName            File name of assembly to be produced
   /publickey:FileName      File containing strong name public key
   /keyfile:FileName        File containing strong name key pair
   /keycontainer:FileName   Key container holding strong name key pair
   /delaysign               Force strong name delay signing
                            Used with /keyfile, /keycontainer or /publickey
   /source                  Generate C# source code for Windows Forms wrapper
   /rcw:FileName            Assembly to use for Runtime Callable Wrapper rather than generating new one.
                            Multiple instances may be specified. Current directory is used for relative paths.
   /nologo                  Prevents AxImp from displaying logo
   /silent                  Prevents AxImp from displaying success message
   /verbose                 Displays extra information
   /? or /help              Display this usage message

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions