hello, can any 1 please help/guide me for creating an program .exe file in C. as i am using Dev c++ compiler.say for E.g( program of addition in this by compiling & running it i get the required output. but if i dont want to run the program again n again in c code.instead of it i just create 1 exe file so that when i double click it. it automatically runs & produces the required output.although the s/w itself produces the exe file. but it opens along with all the supported/assosciated files with it. i just require only 1 exe file.
kapilsolanki84
0
Newbie Poster
Recommended Answers
Jump to PostThe exe file is created automatically when you run your program. It is located in the same directory where your source file resides.
Jump to PostIsn't it created when you compile, your program, saad749?
I don't use that compiler but there should be a specific directory (maybe debug or release) where your .exe is being produced on compilation.
You can execute that file just like any other executable.
Jump to PostYes, the exe file is created the moment program is compiled. It is created in the same directory as the source file.
Jump to PostWhen you compile a program the compiler generates the executable program that is usually self-contained except maybe for a few operating system shared libraries and DLLs. You can move the executable program any where you wish on your computer and it will normally run without problems. The source files (*.cpp …
Jump to PostBTW if u r using image file or other external files you will need to move the respected files along with the exe file. The Source and header files as MENTIONED ABOVE are NOT NEEDED.
All 18 Replies
saad749
0
Light Poster
Isaac Remuant
40
Newbie Poster
saad749
0
Light Poster
kapilsolanki84
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
saad749
0
Light Poster
kapilsolanki84
0
Newbie Poster
saad749
0
Light Poster
Kamatari
1
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
saad749
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
saad749
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vinitmittal2008
37
Junior Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vinitmittal2008
37
Junior Poster
sharunkumar
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.