answersLogoWhite

0


Best Answer

An 'exe' extension file is created by a compiler that translates source code to machine code, usually in a Windows environment.

An executable program can open any file (including other executable files) by using the standard file API calls with a binary open option.

Unless you are doing something very specific with executable files it doesn't make much sense to read in an executable file from another executable file or program.

User Avatar

Wiki User

βˆ™ 14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 12y ago

Compilers do not write EXE files, that is the job of the linker.

When you build an application, the preprocessor directives are processed first, which produces intermediate source files for the compiler. The compiler then compiles those intermediate source files into object files. The linker then links all the object files and static libraries to create your executable file.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 15y ago

You are not ready to write a compiler (or linker) program yourself yet; but of course you can use an already existing compiler to create exe-file from your source-programs.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 14y ago

Compile and link.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can create a exe file in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you hide an image within an exe file?

.exe stands for executeable. A .exe file can be any program such as internetexplorer.exe, or solitare.exe. the .exe files call on information stored in the program files, and puts them all togethor to create a program as you know it. I'm assuming you want to hide an image in a folder, where you would create a new foler, then drag the image to it. but, if you are making a .exe, you tell the computer to call on the picture which is stored somewhere


What is the difference between a obj file and an exe file in C?

.obj is a simple data-format file that represents 3D geometry alone. .exe is an executable file that usually contains other resources which are sometimes used for a Graphical User Interface. Being simple, its a file to perform indicated tasks according to encoded instructions.


How do you create a header file and implementation of code in another c file and both should be retrieved by another .c file?

tanga


How do you make exe file of visual basic project?

Whenever you save a project it automatically saves a .exe of it. Go to My Documents -> Visual Studio 2005/2008 -> Projects -> "Choose your Project" -> Click on the folder with the name as your project -> obj -> Debug There should be an .exe file with the name of your project in it, or something like "Windows Application 1.exe". Double click on it.


How do you easily create Excel files in c?

You might be able to use C to extract data from an Excel file, but there is no easy way to write a program to create an Excel file.

Related questions

How do you create .exe file in c plus plus?

You can create an exe-file from your C++ source, if you have a compiler.


How do you convert .c extension to .exe?

To convert source code (.c file) to an executable (.exe) file you have to use a compiler, which is a translator of source code to machine code.


Is Need for Madness from arcde town a .zip file or a .exe file?

An exe file, a windows executable file. There is no zip file for it as far as I know, also arcade down did not create need for madness, radical play did.


How do you create an auto executable file?

whenever the program is compiled by the compiler,a .exe file is formed.here u can find the out put.but a .dll file is formed when a application logic is build to form a component,which can b a part of a .exe file.i mean to say .dll can't produce a out put,but can b used by a application,and after compilation form a .exe file. == A linkage editor will do the trick (often integrated with the compiler). How to create an EXE file If you want to launch Gentee programs as exe files, then use the ge2exe program. It allows to create an .exe file from a source file (.g file) or a compiled bytecode (.ge file). Such .exe file is executed without any extra modules. It can be useful, when you wish to use the program on other computers. GE files are created when compiling programs in Gentee. ge2exe.exe [switches] <source file> [output file] switches - options. You can specify the following options: -e - launch the .exe file after creation. -d - do not include gentee.dll to the created .exe file. In this case, for launching the program gentee.dll is required. This option may be useful if you have several programs in one directory. -w - wait for keystroke after the .exe file is created. -i - link .ico file. It must be the next argument. -i "c:\data\myicon.ico" -r - link .res file. It must be the next argument. -r "c:\data\myres.res" -c - make a console application. Default for .g and .ge files. -g - make a gui application. Default for .gw and .gwe files. source file is a required parameter, and should point the name of the file with bytecode or source code. The following extensions are supported: .G, .GW, .GE, .GWE . output file is an accessory parameter, in which you can point a name for the created .exe file. By default, if this parameter is not specified, the executable will have the same name as the source file, but with extension exe. ge2exe.exe -r myapp.ge ge2exe.exe myapp.ge c:\output\app.exe


How do you run an .exe from batch file?

Yes, To run a file in batch, do one of the following: If it is in the same folder, start filename.exe If it is in another folder, start C:\%filepath%\.exe ex: start C:\Windows\system32\cmd.exe


What does cwindowsexedawevdll mean?

it is a file (C/windows/exe/daw/evdll) is sum random file :)


What are the file created after c file is save?

Having saved the source file (*.C), you can compile it into an object module (*.OBJ), then link an executable program (*.EXE)


Convert .exe file to .sis formate using C language?

love


How do you get rid of rundll32exe?

It all depends on where the file is located.The rundll32.exe file is located in the folder C:\Windows\System32 is a system file . In other cases, rundll32.exe is a virus, spyware, Trojan or worm! .


How do you convert a exe file to a txt file?

You can't convert an exe file to a txt file.


How do you hide an image within an exe file?

.exe stands for executeable. A .exe file can be any program such as internetexplorer.exe, or solitare.exe. the .exe files call on information stored in the program files, and puts them all togethor to create a program as you know it. I'm assuming you want to hide an image in a folder, where you would create a new foler, then drag the image to it. but, if you are making a .exe, you tell the computer to call on the picture which is stored somewhere


How can I change lnk files back to exe format?

I'm not sure what you mean... .lnk is type of file which directs to a .exe file. If you do not have .exe file still have .lnk file you can't start the program. If you have .exe file but you do not have .lnk file pointing to it you still can run the program but you will have to locate the .exe file manually.