Creating an exe using another exe

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ricky Koh

    Creating an exe using another exe

    Hi. I wanted to know if it is possible to create an exe by using
    another exe created by C++? If it is possible, are there any examples
    out there?
  • Artie Gold

    #2
    Re: Creating an exe using another exe

    Ricky Koh wrote:[color=blue]
    > Hi. I wanted to know if it is possible to create an exe by using
    > another exe created by C++? If it is possible, are there any examples
    > out there?[/color]

    Sure. All you need is a C++ compiler (and probably linker) written in C++.

    Now your question about the C++ *language* is....

    Cheers,
    --ag

    --
    Artie Gold -- Austin, Texas

    Comment

    • Anchor

      #3
      Re: Creating an exe using another exe


      I want to know the answer ,too.

      [color=blue]
      > Hi. I wanted to know if it is possible to create an exe by using
      > another exe created by C++? If it is possible, are there any examples
      > out there?[/color]


      Comment

      • John Harrison

        #4
        [OT] Re: Creating an exe using another exe


        "Anchor" <AijinSun@hotma il.com> wrote in message
        news:bihfrk$v5o $1@mail.cn99.co m...[color=blue]
        >
        > I want to know the answer ,too.
        >
        >[color=green]
        > > Hi. I wanted to know if it is possible to create an exe by using
        > > another exe created by C++? If it is possible, are there any examples
        > > out there?[/color]
        >[/color]

        Executables (or exes) are just files, so of course C++ can create
        executables just like any other file. The trick is to know what the format
        is for executables files on your system.

        A good place to find out about file formats is www.wotsit.org, exe file
        format is explained there.

        john


        Comment

        • Scott Condit

          #5
          Re: [OT] Re: Creating an exe using another exe

          Joe Hotchkiss wrote:[color=blue]
          > Ricky Koh wrote:
          >[color=green]
          >>Hi. I wanted to know if it is possible to create an exe by using
          >>another exe created by C++? If it is possible, are there any examples
          >>out there?[/color]
          >
          >
          > If you can use a compiler from the command line, you can do this at run-time
          > with a call to system() or one of the spawn...() functions, or perhaps
          > fork()/exec...().
          > None of these are standard C++ though.[/color]

          system() is, although of course exactly what it does (when called with
          a non-null pointer) isn't defined by the standard.

          S

          Comment

          Working...