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. How to creat exe files?

How to creat exe files?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
13 Posts 5 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

    Hey every one... I am asking about how to creat exe files from my application... I want to make a program that creat other .exe files with a specific values. for example, When I am running my application, I enter a value (let's say my name) and click on a button named "creat", then an valid exe file will be created and the value (my name) will be inside it. thanks : )

    G 1 Reply Last reply
    0
    • D Dody_DK

      Hey every one... I am asking about how to creat exe files from my application... I want to make a program that creat other .exe files with a specific values. for example, When I am running my application, I enter a value (let's say my name) and click on a button named "creat", then an valid exe file will be created and the value (my name) will be inside it. thanks : )

      G Offline
      G Offline
      gamitech
      wrote on last edited by
      #2

      what you're asking is very simple but I am curious what would you like the exe to do. and then I will give you a solution gabby

      J 1 Reply Last reply
      0
      • G gamitech

        what you're asking is very simple but I am curious what would you like the exe to do. and then I will give you a solution gabby

        J Offline
        J Offline
        John R Shaw
        wrote on last edited by
        #3

        :)I liked your answer. To many of the quesions (small amount) seem to be aimed in the wrong direction. This is a new one and I would also like to know what he would what it to do. INTP

        V G 2 Replies Last reply
        0
        • J John R Shaw

          :)I liked your answer. To many of the quesions (small amount) seem to be aimed in the wrong direction. This is a new one and I would also like to know what he would what it to do. INTP

          V Offline
          V Offline
          VikramDelhi i
          wrote on last edited by
          #4

          :-DHey :omg: what's happening here. :eek: ????????

          D 1 Reply Last reply
          0
          • V VikramDelhi i

            :-DHey :omg: what's happening here. :eek: ????????

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

            I don't know why you thing I will use it in the wrong way? ( I don't know how it can be used in a wrong way?) and I want the exe file to include some buttons and edit box, or maybe include some codes to solve a math. question or any thing else. why I want exe file? because it is an extension file, and I already study how to make the other files, like .txt or .html, but never learnt how to make .exe files so I will be thankful for any help, and Believe me I am not going to use it in wrong way. :)

            T 1 Reply Last reply
            0
            • D Dody_DK

              I don't know why you thing I will use it in the wrong way? ( I don't know how it can be used in a wrong way?) and I want the exe file to include some buttons and edit box, or maybe include some codes to solve a math. question or any thing else. why I want exe file? because it is an extension file, and I already study how to make the other files, like .txt or .html, but never learnt how to make .exe files so I will be thankful for any help, and Believe me I am not going to use it in wrong way. :)

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              I think you are looking for Dialog based application. here is Some step that will help-: !-Open MS Visual Studio 6.0 !-Click on FILE|NEW,and wait for property page to open. !-select PROJECTS|MFC AppWizard(exe),Do remember to give the name of project.CLick Next !-Select type to Dialog based,and click next till wizrad over. !-now you are presented with Dialog Box editor,drag and drop your Control to Dialog box,build and execute the Preoject to see your exe ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

              D 1 Reply Last reply
              0
              • T ThatsAlok

                I think you are looking for Dialog based application. here is Some step that will help-: !-Open MS Visual Studio 6.0 !-Click on FILE|NEW,and wait for property page to open. !-select PROJECTS|MFC AppWizard(exe),Do remember to give the name of project.CLick Next !-Select type to Dialog based,and click next till wizrad over. !-now you are presented with Dialog Box editor,drag and drop your Control to Dialog box,build and execute the Preoject to see your exe ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

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

                Yeah I know, but I want my project which is an exe file to creat other exe files. :sigh: thanks alot

                G 1 Reply Last reply
                0
                • D Dody_DK

                  Yeah I know, but I want my project which is an exe file to creat other exe files. :sigh: thanks alot

                  G Offline
                  G Offline
                  gamitech
                  wrote on last edited by
                  #8

                  you must first have the contetnt of the exe file somewhere. in the resources or just in an ordinary file. then you open the new file where you want it to be created: FILE *exec; exec=fopen(); while(true) { data=readfile(oldfile); fprintf(exec,data); } this is the idea of the code. To load it from the resources is a little longer code and I am tired so I won't write the code. try to read the MSDN more. good luck.

                  1 Reply Last reply
                  0
                  • J John R Shaw

                    :)I liked your answer. To many of the quesions (small amount) seem to be aimed in the wrong direction. This is a new one and I would also like to know what he would what it to do. INTP

                    G Offline
                    G Offline
                    gamitech
                    wrote on last edited by
                    #9

                    thank you. I think he ust said what the exe should do but it seems kind of hard to do. gabby

                    D 1 Reply Last reply
                    0
                    • G gamitech

                      thank you. I think he ust said what the exe should do but it seems kind of hard to do. gabby

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

                      Thank you very much for your help.. I got also the idea of how to do it, but I still can't do it.... can you give which title i should search in MSDN I know it is hard, but I will not give up :) thanks again

                      G 1 Reply Last reply
                      0
                      • D Dody_DK

                        Thank you very much for your help.. I got also the idea of how to do it, but I still can't do it.... can you give which title i should search in MSDN I know it is hard, but I will not give up :) thanks again

                        G Offline
                        G Offline
                        gamitech
                        wrote on last edited by
                        #11

                        Hmmm hard to tell.... The MSDN is really big. What sort of problem are you having now. If it is about manipulating files read about I/O functions which you can find by going to the index tag in the MSDN and type any of the functions (ex CopyFile) and in the bottom of the page you get a link like this: See Also File I/O Overview, File I/O Functions, CopyFileEx, CreateFile, MoveFile ; You may choose any of those but it advisable that you should choose "File I\O overview". Then if you have problems with manipulating strings go to the index tag as well in the MSDN and write a str function ( ex: strcmp) then you will see that the function has also an example along with the explanation. In the bottom of the page you get this link: "String Manipulation Routines". Push it and you will see al the possible functions all with an exapmle each. I thing that these were the issues you where concerned in, otherwise tell what exactly can't you do. Good Luck. gabby

                        D 1 Reply Last reply
                        0
                        • G gamitech

                          Hmmm hard to tell.... The MSDN is really big. What sort of problem are you having now. If it is about manipulating files read about I/O functions which you can find by going to the index tag in the MSDN and type any of the functions (ex CopyFile) and in the bottom of the page you get a link like this: See Also File I/O Overview, File I/O Functions, CopyFileEx, CreateFile, MoveFile ; You may choose any of those but it advisable that you should choose "File I\O overview". Then if you have problems with manipulating strings go to the index tag as well in the MSDN and write a str function ( ex: strcmp) then you will see that the function has also an example along with the explanation. In the bottom of the page you get this link: "String Manipulation Routines". Push it and you will see al the possible functions all with an exapmle each. I thing that these were the issues you where concerned in, otherwise tell what exactly can't you do. Good Luck. gabby

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

                          Thanks alot man... your replay includes many things, so I need to be over them all, and try it one by one... so it will take some time until I ask the next question :) I am very thankful for your help thanks again ;)

                          G 1 Reply Last reply
                          0
                          • D Dody_DK

                            Thanks alot man... your replay includes many things, so I need to be over them all, and try it one by one... so it will take some time until I ask the next question :) I am very thankful for your help thanks again ;)

                            G Offline
                            G Offline
                            gamitech
                            wrote on last edited by
                            #13

                            no problem I am here to help whenever is neccesary. gabby

                            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