DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Creating an exe file (http://www.daniweb.com/forums/thread935.html)

rickykoh1983 Aug 26th, 2003 1:16 am
Creating an exe file
 
Hi. I have a program that allows users to enter their information. After they have entered their information and clicked on submit, the program will create another exe file so that when the user opens the exe file, they will be able to see their information.

How can I create a exe file from another exe file???

cscgal Aug 26th, 2003 4:44 pm
Re: Creating an exe file
 
I found this link for ya

http://www.experts-exchange.com/Prog...1.html#7654606

I don't know if it would be of much help though.

rickykoh1983 Aug 26th, 2003 9:50 pm
Thanks
 
Thanks for your help. But I wish to do this in C++. How can I make this possible?

RamPrasad710 Feb 25th, 2008 1:16 am
Re: Creating an exe file
 
Quote:

Originally Posted by cscgal (Post 5299)
I found this link for ya

http://www.experts-exchange.com/Prog...1.html#7654606

I don't know if it would be of much help though.


Hi please help me, i have a .exe file for my c++ program, but I don't want that. I need to find how it calls my main function. Is it possible?

prushik Feb 25th, 2008 1:25 am
Re: Creating an exe file
 
You could generate valid c++ code that does a few couts to display the text and then output that to a text file and use system() with a command line compiler to compile it into an exe.

prushik Feb 25th, 2008 1:28 am
Re: Creating an exe file
 
Quote:

Originally Posted by prushik (Post 544700)
You could generate valid c++ code that does a few couts to display the text and then output that to a text file and use system() with a command line compiler to compile it into an exe.

Oh, by the way, I know it was my suggestion, but I should tell you that it would be very bad programming practice.

RamPrasad710 Feb 25th, 2008 1:57 am
Re: Creating an exe file
 
Quote:

Originally Posted by prushik (Post 544701)
Oh, by the way, I know it was my suggestion, but I should tell you that it would be very bad programming practice.

Actually my exe file is there in /bin directory, so is it mandatory that if i have to create a .exe file in the same? Also I cannot find any where in the program, where it is mentioned to make .exe file to come into the picture.


All times are GMT -4. The time now is 2:45 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC