Hello,

I am running into a problem when trying to use an ActiveX controller (.ocx) in Qt. In short, I write that

Qt Code:
  1. m_activeX = new QAxWidget( this );
  2. m_activeX->setControl("{3CE35BF3-1E13-4D2C-8C0B-DEF6314420B3}");
To copy to clipboard, switch view to plain text mode 

where {3CE35BF3-1E13-4D2C-8C0B-DEF6314420B3} is the CLSID of well-registered OCX component, I get the following error message:

Qt Code:
  1. CoCreateInstance failure (Class not registered)
  2. QAxBase::setControl: requested control {3CE35BF3-1E13-4D2C-8C0B-DEF6314420B3} co
  3. uld not be instantiated
To copy to clipboard, switch view to plain text mode 

My problem is simple: when developing a simple MFC application and embedding the very same ActiveX control in it, it works perfectly fine. Also, I tried to use testcon (provided by ActiveQt) on this ActiveX, but I got the same error message. So, is there some kind of incompatibility between this ActiveX and Qt4?

Note that surprisingly the ActiveX's CLSID does not show up in HKEY_CLASSES_ROOT\CLSID, but rather in HKEY_CLASSES_ROOT\Wow6432Node\CLSID. Can it be the cause for the problem?