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. [Solved] QProcess: can you call a 64 bit executable from within 32 bit Qt App on Windows 7?
Forum Updated to NodeBB v4.3 + New Features

[Solved] QProcess: can you call a 64 bit executable from within 32 bit Qt App on Windows 7?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.1k 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.
  • siropS Offline
    siropS Offline
    sirop
    wrote on last edited by
    #1

    QProcess: can you call a 64 bit executable from within 32 bit Qt App on Windows 7?

    Thanks for your answers in advance.

    To be, or not to be: that is the question:
    Whether ’tis nobler in the mind to suffer
    The slings and arrows of outrageous fortune,
    Or to take arms against a sea of troubles,
    And by opposing end them?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alex_malyu
      wrote on last edited by
      #2

      I do not see why not.
      Have you tried and it did not work?

      1 Reply Last reply
      0
      • T3STYT Offline
        T3STYT Offline
        T3STY
        wrote on last edited by
        #3

        Yes, you can. By default though Windows will redirect calls from 32-bit applications to any 64-bit system applications to the respective 32-bit counterpart. To avoid it you should disable the file system redirection as explained here:
        https://msdn.microsoft.com/en-us/library/windows/desktop/aa365743(v=vs.85).aspx
        Applications that are NOT in the system folders (Program Files, Windows, System32 ect..) should not be affected.

        I am not sure though if Qt includes this functionality in its classes, or if you have to do this manually by linking with the kernel32 library and calling the appropriate function.

        1 Reply Last reply
        0
        • siropS Offline
          siropS Offline
          sirop
          wrote on last edited by
          #4

          [quote author="T3STY" date="1424493842"]Yes, you can. By default though Windows will redirect calls from 32-bit applications to any 64-bit system applications to the respective 32-bit counterpart. To avoid it you should [/quote]

          Thanks.

          To be, or not to be: that is the question:
          Whether ’tis nobler in the mind to suffer
          The slings and arrows of outrageous fortune,
          Or to take arms against a sea of troubles,
          And by opposing end them?

          1 Reply Last reply
          0

          • Login

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