title: Make an executable at runtime
body: <p>Ok, so I was wondering how one would go about creating a program, that creates a second program(Like how most compression programs can create self extracting self excutables, but that's not what I need).</p>
  <p>Say I have 2 programs. Each one containing a class. The one program I would use to modify and fill the class with data. The second file would be a program that also had the class, but empty, and it's only purpose is to access this data in a specific way. I don't know, I'm thinking if the specific class were serialized and then &quot;injected&quot; into the second file. But how would one be able to do that? I've found modifying files that were already compiled fascinating, though I've never been able to make changes that didn't cause errors.</p>
  <p>That's just a thought. I don't know what the solution would be, that's just something that crossed my mind.</p>
  <p>I'd prefer some information in say c or c++ that's cross-platform. The only other language I'd accept is c#.</p>
  <h3>also</h3>
  <p>I'm not looking for 3-rd party library's, or things such as Boost. If anything a shove in the right direction could be all I need.</p>
  <h3>++also</h3>
  <p>I don't want to be using a compiler.</p>
  <h3>Jalf actually read what I wrote</h3>
  <p>That's exactly what I would like to know how to do. I think that's fairly obvious by what I asked above. I said nothing about compiling the files, or scripting.</p>
  <h3>QUOTE &quot;I've found modifying files that were already compiled fascinating&quot;</h3>
  <p>Please read and <strong>understand</strong> the question first before posting.</p>
  <p>thanks.</p>