Results 1 to 4 of 4

Thread: How to embed binary resources (EXE,DLL) and execute later?

  1. #1
    Join Date
    Mar 2007
    Posts
    19
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default How to embed binary resources (EXE,DLL) and execute later?

    Hello,

    I have two questions:
    1- How can I embed binary files (specially EXE, DLL, etc.) into my software?
    2- How can I laterly execute these embedded files, or use them?

    Your regards,

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to embed binary resources (EXE,DLL) and execute later?

    1. its called static linking
    2. define 'laterly' (example would be good)

  3. #3
    Join Date
    Mar 2007
    Posts
    19
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to embed binary resources (EXE,DLL) and execute later?

    Sorry about the wrong terminology. I'm a newbie

    Think about I have 2 files: foo.exe and foo.dll. Foo.exe uses foo.dll
    I want to create a software using QT. Say it mySoftware (mySoftware.exe).
    1- I want to embed foo.exe and foo.dll to mySoftware.exe. How can I do that? Or are there another way to do such a thing?
    2- I've tried to say; look at the situation 1. After I embedded successfully these files (foo.exe and foo.dll) into mySoftware, for example if a user clicks a button i want to execute foo.exe on the background.

    Is it clear?

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to embed binary resources (EXE,DLL) and execute later?

    Then you change your exe file and compile it as a static lib.
    You do the same with the DLL.
    You then staticaly link them both to your Qt exe.

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.