Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Generate/edit files

Generate/edit files

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dody_DK
    wrote on last edited by
    #1

    Generate files How can we generate files. for example if I want to make an exe file that generate another exe file. and if i make a program and put an edit box, and when i write something in the edit box, and click generate. the value in the edit box will be edited to the generated exe files or if i have an exe file that have an (m_value) Cstring and make another file to edit/change (m_value) Cstring is it possible? thanks alot

    C 1 Reply Last reply
    0
    • D Dody_DK

      Generate files How can we generate files. for example if I want to make an exe file that generate another exe file. and if i make a program and put an edit box, and when i write something in the edit box, and click generate. the value in the edit box will be edited to the generated exe files or if i have an exe file that have an (m_value) Cstring and make another file to edit/change (m_value) Cstring is it possible? thanks alot

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Dody_DK wrote: for example if I want to make an exe file that generate another exe file. You've got one. It's called a compiler :-) Dody_DK wrote: and if i make a program and put an edit box, and when i write something in the edit box, and click generate. the value in the edit box will be edited to the generated exe files Your compiler does this also. You can take a string and shove it into a file easy enough, it's 'generating' an exe that is the job. Dody_DK wrote: if i have an exe file that have an (m_value) Cstring and make another file to edit/change (m_value) Cstring You need to define a process to do this, your two processes need to communicate and cooperate to achieve this. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

      D 1 Reply Last reply
      0
      • C Christian Graus

        Dody_DK wrote: for example if I want to make an exe file that generate another exe file. You've got one. It's called a compiler :-) Dody_DK wrote: and if i make a program and put an edit box, and when i write something in the edit box, and click generate. the value in the edit box will be edited to the generated exe files Your compiler does this also. You can take a string and shove it into a file easy enough, it's 'generating' an exe that is the job. Dody_DK wrote: if i have an exe file that have an (m_value) Cstring and make another file to edit/change (m_value) Cstring You need to define a process to do this, your two processes need to communicate and cooperate to achieve this. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

        D Offline
        D Offline
        Dody_DK
        wrote on last edited by
        #3

        you misunderstod me I know that the compiler make the exe programs but I mean to make a program let's call it "one.exe" and in this program are some edit box, when i write some values, i want it to be saved in other exe file with these values... i hope i explained it better this time : ) thanks alot

        D C 2 Replies Last reply
        0
        • D Dody_DK

          you misunderstod me I know that the compiler make the exe programs but I mean to make a program let's call it "one.exe" and in this program are some edit box, when i write some values, i want it to be saved in other exe file with these values... i hope i explained it better this time : ) thanks alot

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Your request sounds a lot like this one.


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          1 Reply Last reply
          0
          • D Dody_DK

            you misunderstod me I know that the compiler make the exe programs but I mean to make a program let's call it "one.exe" and in this program are some edit box, when i write some values, i want it to be saved in other exe file with these values... i hope i explained it better this time : ) thanks alot

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            I know what you want, it just sounds wierd. Why do you want to do this ? Is it to patch another program, or is it to hack it ? Either way, it can be done, so long as you're willing to sit with a hex editor and work out exactly at what position you need to insert your new value. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups