Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Accessing a 32-bit dll from Qt
Forum Updated to NodeBB v4.3 + New Features

Accessing a 32-bit dll from Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 401 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    olowo726
    wrote on last edited by
    #1

    Hello,

    I have a Qt desktop application which today is a 64-bit built for Windows with MSVC using Qt 6.4.x. Now I need to access a legacy 32-bit dll to interface with a legacy hardware. What might be the easiest? Is it possible to build qt for 32-bit Windows? From https://doc.qt.io/qt-6/windows-building.html the supported architecture is x86_64. Does that mean only 64-bit or 32 and 64-bit?

    Or would you recommend to build a 32-bit application and set up some kind of IPC? Of so, which one? I saw that Microsoft recommends COM but that seems overkill in my situation. The API in the DLL which I need to access is just ~12 functions.

    JKSHJ 1 Reply Last reply
    0
    • O olowo726

      Hello,

      I have a Qt desktop application which today is a 64-bit built for Windows with MSVC using Qt 6.4.x. Now I need to access a legacy 32-bit dll to interface with a legacy hardware. What might be the easiest? Is it possible to build qt for 32-bit Windows? From https://doc.qt.io/qt-6/windows-building.html the supported architecture is x86_64. Does that mean only 64-bit or 32 and 64-bit?

      Or would you recommend to build a 32-bit application and set up some kind of IPC? Of so, which one? I saw that Microsoft recommends COM but that seems overkill in my situation. The API in the DLL which I need to access is just ~12 functions.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @olowo726 said in Accessing a 32-bit dll from Qt:

      I need to access a legacy 32-bit dll

      Then your application and all its dependencies must also be 32-bit.

      Or would you recommend to build a 32-bit application and set up some kind of IPC? Of so, which one? I saw that Microsoft recommends COM but that seems overkill in my situation. The API in the DLL which I need to access is just ~12 functions.

      Yes, this is a possible alternative... But your code would need to become significantly more complex. Definitely not my preferred route.

      Is it possible to build qt for 32-bit Windows?

      It's not supported, but you can try. (Qt 6 does build for 32-bit embedded Linux devices)

      From https://doc.qt.io/qt-6/windows-building.html the supported architecture is x86_64. Does that mean only 64-bit or 32 and 64-bit?

      x86_64 means 64-bit.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved