Results 1 to 13 of 13

Thread: Running QByteArray executable data direclty in QProcess without running external file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2014
    Posts
    31
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation Running QByteArray executable data direclty in QProcess without running external file

    Hello,
    This is my second thread, totally different issue.

    I want to use QProcess to execute an executable data stored in QByteArray, taken from a hex.

    NOTE: when I use QFile to output the data into .exe, the exe will run perfectly.

    But I don't want to write it out, I only want to execute it internally in the program.

    If QProcess won't do it, please tell me what will do it.

    Thanks,
    Vladimir.

  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: Running QByteArray executable data direclty in QProcess without running external

    Nothing in Qt I am aware of. You might be able to do something with low level Windows Api calls, but you will most likely fall foul of data execution prevention.. Why not just write the code to a QTemporaryFile?

Similar Threads

  1. Replies: 2
    Last Post: 5th December 2010, 06:05
  2. Replies: 12
    Last Post: 11th September 2010, 01:39
  3. Replies: 2
    Last Post: 5th August 2010, 10:18
  4. QProcess running batch file
    By Vit Stepanek in forum Qt Programming
    Replies: 1
    Last Post: 22nd June 2010, 14:23
  5. Replies: 5
    Last Post: 17th March 2010, 18:30

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.