32bit & 64bit ActiveX with same GUIDs?

I have an MFC ActiveX control building in VS2010. I can build 32 or 64 bit versions which register and run fine from 32 and 64 bit target apps.

The problem is the 64 bit version of the control cant be added to the toolbox in VS and therfore dropped on the form in designer view (which some customers like to do). The control also contains some GUI items which are more troublesome to add programmatically.

Can i build both versions of the control with the same guids? Would this allow the 32bit version to go into the toolbox but the 64 bit one to be used at runtime if the final application is targetted at x64?

Or is there another way of getting the toolbox support with a 64 app and ActiveX?

Many Thanks

Answers


Although it can generate 64 bits applications, Visual Studio 2010 is a 32 bits application so you can only add to the toolbox 32 bits version of ActiveX controls. It's highly recommended that you use the same guids for 32 and 64 bits versions of your control so it will be correctly referenced when your application is compiled for 32 and 64 bits.


Need Your Help

How can I define the run order of vagrant middleware plugins?

vagrant virtualbox rhel vagrant-plugin

I'm creating a Red Hat Enterprise Linux 7 VM in VirtualBox with vagrant. If I have a base box that both doesn't have the VirtualBox guest additions, and isn't registered, then I'd manually need to ...

Updating TopicsController to allow a moderator to update topics, but not create or delete

ruby-on-rails ruby

I'm in the process of creating a website similar to Reddit. I would like to allow a moderator to be able to update a topic, but not be able to create or delete topic. I'm aware that I need to update