CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2006
    Location
    Timisoara, Romania
    Posts
    433

    questions about .exe-s

    Hello.

    Is there a format for .exe files? I know they can have resources. Knowing that there are programs to extract the resources from it, makes me believe there is a format. Can somebody tell me how things are arranged in an .exe file?

    And, one more question: if I concatenate two .exe files, why is it that only the first gets executed? is there a way I can make both execute?

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: questions about .exe-s

    Concatenate EXEs?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Aug 2006
    Location
    Timisoara, Romania
    Posts
    433

    Post Re: questions about .exe-s

    no, it does not work.

    only the first one gets executed. the one concatenated never gets executed.

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: questions about .exe-s

    I'm asking...What do you mean by concatenate EXEs? Hence the question mark.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Aug 2006
    Location
    Timisoara, Romania
    Posts
    433

    Re: questions about .exe-s

    by concatenating 2 files, I mean, reading the first file in a buffer, write the buffer in in the result file, read the second file in a buffer, write the buffer in the result file.

    that is, in pseudocode:
    resultfile.create();

    file1.open();
    file1.read(buffer);
    resultfile.write(buffer);
    file1.close();

    file2.open();
    file2.read(buffer);
    resultfile.write(buffer);
    file2.close();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured