Results 1 to 4 of 4

Thread: How to use Microsoft COM interfaces in QT?

  1. #1
    Join Date
    May 2010
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to use Microsoft COM interfaces in QT?

    The COM is distributed under VC++, it supply interface for IM usage. Now I want to add a UI for this IM, which would be desiged by Qt. My Qt is qt-sdk-win-opensource-2010.02.1. in windows XP system.

    The COM is not installed in my system, so the total COM files are:
    ../Bin/ *.dll, Microsoft.VC90.CRT.manifest
    ../IDL/ *.idl (only two files)
    ../TLB/ *.tlb (only two files)
    ../Include/ *.c *.h (two files respective)

    The question is how to make use of that COM interface in my Qt project?

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to use Microsoft COM interfaces in QT?

    Have a look at ActiveQt

  3. #3
    Join Date
    May 2010
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to use Microsoft COM interfaces in QT?

    I had read the ActiveQt, but the example load the COM that had registered in system. But my COM is not registered.
    so in QAxObjec's setControl(QString &) function cannot instantiate correctly.
    Please help me for detail, thanks a lot.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to use Microsoft COM interfaces in QT?

    The normal mode of operation on Windows is that COM objects must be registered in the system registry. If you cannot do this then you will need to investigate ways to access the COM object using the Microsoft manifest files (http://msdn.microsoft.com/en-us/library/ms973913.aspx) or some other method (Google DirectCOM). I assume that with the manifests in place ActiveQt will just work, but I haven't tried that.

Similar Threads

  1. Qt Designer for web interfaces
    By rbp in forum Qt Tools
    Replies: 3
    Last Post: 14th October 2009, 02:01
  2. Polymorphism interfaces in C++
    By ComaWhite in forum General Programming
    Replies: 2
    Last Post: 1st July 2009, 12:38
  3. Calling COM/DCOM interfaces from Qt App?
    By jaganpes in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2008, 04:38
  4. QVariant and Plugin interfaces
    By QPlace in forum Qt Programming
    Replies: 9
    Last Post: 6th August 2007, 00:04
  5. Plugin Interfaces
    By Paul Drummond in forum Qt Programming
    Replies: 1
    Last Post: 27th February 2006, 13:37

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.