Just to make sure, you do have QAxContainer module enabled, right? What happens if you try to instantiate a plain QAxObject?
Just to make sure, you do have QAxContainer module enabled, right? What happens if you try to instantiate a plain QAxObject?
J-P Nurmi
Yes, it's enabled. I'm able to instantiate QAxObjects based on other libraries with no problem.
The error is saying that QObject copy constructor cannot be used since it's private, which is correct. But what makes compiler so mixed up at that point in qaxobject.h? Are you sure there's no semi-colon (";") missing anywhere before the include directive or so? I guess then it wouldn't compile even without the include though, but...![]()
J-P Nurmi
That's the thing that really confuses me here: why would the compiler think that QAxObject is trying to call the QObject copy constructor? No, there's no semi-colon missing before the include... I wish it was that easy![]()
I regenerated the wrapper but that didn't fix the problem. I have already generated a wrapper for another type library and it works fine.
Is it possible that somehow the library I'm trying to wrap is corrupt, or being misinterpreted by dumpcpp? I am able to view the library's interface through MSVS's Object Browser, which makes me assume that everything is fine with that component... maybe I'm wrong in that assumption?
I appreciate your ideas and suggestions.
Jimmy
Yes, it looks like the generator can't handle the component. I think you should report that to Trolltech - specifying the component id that caused the problem, maybe they can fix it.
Well I talked to the people who made the original .tlb and got another copy of it. I tried wrapping the new one but still got the same result, so I guess it's time to email Trolltech support.
Thanks for your suggestions - I'll post when I hear back from the trolls.
Jimmy
Just an update - after talking to Trolltech we determined that there was an issue with the type library. Oddly enough the error should have shown up when compiling the generated .cpp file, as opposed to including the header in another .cpp file. Trolltech implied that while the library was corrupt, the bizarre error was possibly the result of an issue with the dumpcpp tool.
They also gave me some code that I can add to the generated header file to allow my code to run without issue. Thanks for your suggestions wysota and jpn.
hey, i am facing this problem . please help me with a sample code snippet
thanks
Could you try regenerating the wrapper? Maybe you changed its code by accident? Or the encoding is incorrect? You can also try generating a wrapper for some other component and see if you face the same issue.
Bookmarks