Click here to Skip to main content
15,886,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a large piece of c++ code related to COM and ActiveX controls. In this I have one project compiling into .DLL file, and another project compiling to an .OCX file.
Now, when I look into all registered Automation objects on my machine, it shows that .DLL file registered as .OCX 32 bit file. and The project which was copiled to .ocx file is not there in list of registered Automation objects. I am unable to figure it out why its happening. Please let me know whether this behavior is correct. I am relatively new in working with COM objects.

What I have tried:

Tried to unregister and then register the dll file again with regsvr32 command. but still it is showing as .OCX 32 in list of registered Automation objects.
Posted
Updated 22-Aug-17 0:42am

1 solution

The registration is done by some reg-files which the IDL-compiler is creating. So must look into your project and modify them. By the way: an ocx file is a dll.

Change the GUID in the idl-file at all occurances!!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900