PDA

View Full Version : Example of QT Widget as ActiveX that works!



venkateshhegde
8th February 2011, 02:41
Hi,

I have tried the ActiveX project from examples.

I tried with gcc: Gave compilation errors.
I tried express edition of VC++ 2008. It generated the DLL, even registers, but does not work in IE / Excel, although Excel shows up as ActiveX Control, but fails with "Class not registered" error.

Can Anybody give me a sample ActiveX DLL, HTML to run it and the source code?

Your help in the matter is greatly appreciated.

--
Regards,
ven.

ChrisW67
8th February 2011, 06:36
The ActiveX examples in the documentation are the examples you seek; they work and they even have source code.

It "does not work" is not a useful diagnostic. At the very least the Qt libraries used by your Qt-based control (QtCore, QtGui etc.) will have to be in the path used by IE/Excel/Word/whatever before you have a chance this will work. Download and run depends.exe against the ActiveX DLL to see what is missing.

venkateshhegde
8th February 2011, 09:55
Thank You very much for your help! I had to put QtCored.dll and QtGuid4.dll in my path. Works like acharm.

Thanks again!

--
Regards,
ven.

venkateshhegde
17th February 2011, 23:43
The part that is missing is deployment of a ActiveX control :" OpenSSL download and Microsoft site" has this information.

http://msdn.microsoft.com/en-us/library/3h8ff753(v=vs.80).aspx