Or also http://support.microsoft.com/kb/896457
The easy answer is that you cannot do that. A 64 application can only host 64 bit control. A 32 bit application can only host 32 bit controls.
So you have the following possibilities:
- Force your application to be 32 bit
- Ask for a 64 bit version of your ActiveX control
- Replace your control by something else (ideally a .NET component)
- Do not offer that feature in your 64 bit version
- Start a 32 bit application with a windows with your control (and loose integration)
- Keep the whole UI (user interface) 32 bit and have inter-communication with your 64 bit application (service) with does not have any interface
By the way if you try to use you ActiveX control anyway... It will probably take a lot of time to make it works and it will probably never works as desired... If it would have been easy, then Microsoft would have support it.