How to use COM objects from dll in Qt with no registration

1.1k Views Asked by At

I have a COM visible dll with control which I need to use in my Qt Application (4.8.4). Control code in c#

[Guid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")]
public class MyControl: UserControl
{
    public MyControl()
    {
        //Some code
        InitializeComponent();
    }
}

I use QAxWidget to call it like this

QAxWidget *myControl = new QAxWidget(centralWidget);
myControl ->setControl("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");

But of course it wouldn't work as there is no information about my control in registry

I read this article http://msdn.microsoft.com/en-us/library/ms973915.aspx, and it says this could be resolved through manifests, I tried the same for my Qt application and it doesnt work, it still says

CoCreateInstance failure (Class not registered)

Either I do not set manifest for Qt in the right way, or setControl() method always looks to the registry. How knows how to deal with it?

Thanks

0

There are 0 best solutions below