Results 1 to 7 of 7

Thread: 64 bit COM component

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Posts
    21
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 64 bit COM component

    Thank you for your replying.I put QtCore4.dll ,QtGui4.dll and my dll(that has been created from source) together in the same directory then I register it with regsvr32 successfully but when I want to add it in visual studio as Com component(toolbox-->right click--->choose Item--->COMcomponent)it give me this error self registration for ......dll faild.
    Last edited by hamidarr; 14th November 2014 at 19:21.

  2. #2
    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: 64 bit COM component

    You need to have all the dependencies of the Qt libraries
    http://qt-project.org/doc/qt-5/windo...cation-package

  3. #3
    Join Date
    Jun 2011
    Posts
    21
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 64 bit COM component

    But I don not have any problem when I make 32 bit dll.I do the same things for 64 bit but it gives me this error.

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,316
    Thanks
    315
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: 64 bit COM component

    Is Visual Studio a 64-bit app or a 32-bit app? Many Windows apps have not been ported to 64-bit versions. Just because Visual Studio can generate 64-bit code does not mean that Visual Studio itself is a 64-bit app. If it is a 32-bit app, it probably can't load an in-process 64-bit COM DLL. I don't think you can do anything to fix that. Unlike the change from 16-bit to 32-bit, there is no "thunking" in Windows to allow a 32-bit app to use a 64-bit DLL.

    You could try building your COM component as an out-of-process server. Or move into the modern world and not use COM at all :-).

  5. #5
    Join Date
    Jun 2011
    Posts
    21
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 64 bit COM component

    Thank you for replying.Could you tell me how can I build my Com component as an out-of-process server???

Similar Threads

  1. using component's id in another QML
    By amitpatel22 in forum Qt Quick
    Replies: 2
    Last Post: 22nd May 2013, 16:01
  2. TCP/IP Network Component?
    By qtYoda in forum General Programming
    Replies: 2
    Last Post: 16th November 2011, 05:36
  3. Qt trending component
    By pan in forum Qt Programming
    Replies: 3
    Last Post: 11th February 2011, 08:18
  4. Is there a QIpAddrLineEdit component ?
    By lovelypp in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2008, 14:10
  5. Is there an Led component for qt ?
    By lovelypp in forum Qt Programming
    Replies: 2
    Last Post: 10th July 2008, 17:36

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
  •  
Qt is a trademark of The Qt Company.