Results 1 to 7 of 7

Thread: Coping files

  1. #1
    Join Date
    Dec 2007
    Posts
    28
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Coping files

    Hi

    I want to copy program but not normaly with function "copy", but i want to copy his source and create new file with a same code (code pasted) for example i have program "test.exe" i copy his code and paste to new file... Is it posible? i tried use QDataStream but it didnt work ...

    Best regards

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Coping files

    What do you actually want to do? There are disassemblers which are able to translate binary files as assembler (machine code), but in practice no, what it sounds like you want to do is not possible... You can't take a random executable and convert it as high-level code file.
    J-P Nurmi

  3. #3
    Join Date
    Dec 2007
    Posts
    28
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Coping files

    So how works binders?;p

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Coping files

    What's binders? Do you have a link perhaps?
    A google search reveals nothing. Maybe it is a disassembler or, for .NET assemblies the backward conversion from IL to a .NET language is easier.

  5. #5
    Join Date
    Dec 2007
    Posts
    28
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Coping files

    Binder is a program wich is coping 2 files in to 1 file, for example we have "test1.exe", and "test2.exe", when we use binder he creates "newfile.exe" where are those 2 programs, when you run "newfile.exe", program ll run "test1.exe" and "test2.exe"

    Best regards

  6. #6
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Coping files

    I think the idea behind that is to create an application template and then add other executables to it as resources.
    At runtime, the main program extracts or directly executes the embedded applications.

    Probably you'll have to do some research about that.

  7. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Coping files

    Here's one way of doing it: Self-Extracting Installer. Just extract binaries to a temporary location and use QProcess to launch them.
    J-P Nurmi

  8. The following user says thank you to jpn for this useful post:

    Zergi (15th February 2008)

Similar Threads

  1. compiling problem / Qt DLL files
    By ht1 in forum Newbie
    Replies: 1
    Last Post: 5th January 2008, 17:58
  2. Replies: 5
    Last Post: 22nd September 2006, 08:04
  3. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28
  4. Visual Studio 2003 and .vcproj files
    By mbjerkne in forum General Discussion
    Replies: 2
    Last Post: 1st February 2006, 00:51

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
  •  
Qt is a trademark of The Qt Company.