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. Start exe from resources
Forum Updated to NodeBB v4.3 + New Features

Start exe from resources

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 542 Views 2 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.
  • jondoeJ Offline
    jondoeJ Offline
    jondoe
    wrote on last edited by
    #1

    Hello,
    I want start exe from resources.

    My codes like this

    http://prntscr.com/mg4azt

    but exe not starting. Why ? Why not starting exe ? Can you help me please. Thank you.

    K 1 Reply Last reply
    0
    • jondoeJ jondoe

      Hello,
      I want start exe from resources.

      My codes like this

      http://prntscr.com/mg4azt

      but exe not starting. Why ? Why not starting exe ? Can you help me please. Thank you.

      K Offline
      K Offline
      koahnig
      wrote on last edited by koahnig
      #2

      @jondoe

      Most likely this is not possible because the exe is not started from command line.

      You would need to write the file to some place accessible to the OS and start it from there.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        You can't run executables from resources. They are compiled as a string in the data section of your application's executable. It would be incredibly dangerous and all modern operating systems prevent this. See Executable space protection for more info.
        The only option you have is to write it to a file first and run that. Note however that this behavior is incredibly fishy and no sane antivirus on the planet will like that.

        1 Reply Last reply
        5

        • Login

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