How to make a EXE in windows
-
hello everybody : i want to ask i recently downloaded a C++ source code , i just want to make program executable ( i mean make it binaries)like linux , is there any free program that do and make the setup file . please help. Thanks anyway .
-
HOW???? i mean i downloaded a full source code of program , if you know how to do it ,tell me or give me such a link or e-book that could explain the procedure it detail, thank anyway
You got your answer. :) If you do not understand this simple piece of information. You will have a difficult time.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.
-
hello everybody : i want to ask i recently downloaded a C++ source code , i just want to make program executable ( i mean make it binaries)like linux , is there any free program that do and make the setup file . please help. Thanks anyway .
Here's how to make a simple
.exe
(application executable program) in Windows, copy this source to a file that will callmain.cpp
// We will declare our header files as our first column
#include // Declare namespaces as the second column
using namespace std;// "int main()" serves as the starting point for our program
int main()
{
cout << "Hello user!" << endl;return 0;
}
Compile this and go to your project's folder and double-click on a folder called
bin
and then double click on the folder calleddebug
. If its not in there click on the other folder which is calledrelease
, if you managed to accidently compiled a release version of your program. And there it is, your first made.exe
file.:cool:Simple Greetings and Regards, Brandon Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst). Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
-
HOW???? i mean i downloaded a full source code of program , if you know how to do it ,tell me or give me such a link or e-book that could explain the procedure it detail, thank anyway
Download Visual Studio express as replied earlier. In that you need to create a project. There are several types of projects in Visual Studio. Here is a simple tutorial - http://www.swarthmore.edu/NatSci/tali/E15/Visual_C.html[^] You need to create a project, add the source files to it, compile it and fix the compiler type errors if any. After this process, you will have an executable. As for creating a setup program, you can use the free Wix Toolset. It will integrate with Visual Studio so that you can create the setup program from Visual Studio itself. You can download it from here - http://wixtoolset.org/[^] Here is an extensive tutorial on Wix - http://wix.tramontana.co.hu/tutorial[^]
«_Superman_» _I love work. It gives me something to do between weekends.
-
Here's how to make a simple
.exe
(application executable program) in Windows, copy this source to a file that will callmain.cpp
// We will declare our header files as our first column
#include // Declare namespaces as the second column
using namespace std;// "int main()" serves as the starting point for our program
int main()
{
cout << "Hello user!" << endl;return 0;
}
Compile this and go to your project's folder and double-click on a folder called
bin
and then double click on the folder calleddebug
. If its not in there click on the other folder which is calledrelease
, if you managed to accidently compiled a release version of your program. And there it is, your first made.exe
file.:cool:Simple Greetings and Regards, Brandon Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst). Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
-
HOW???? i mean i downloaded a full source code of program , if you know how to do it ,tell me or give me such a link or e-book that could explain the procedure it detail, thank anyway
-
Here's how to make a simple
.exe
(application executable program) in Windows, copy this source to a file that will callmain.cpp
// We will declare our header files as our first column
#include // Declare namespaces as the second column
using namespace std;// "int main()" serves as the starting point for our program
int main()
{
cout << "Hello user!" << endl;return 0;
}
Compile this and go to your project's folder and double-click on a folder called
bin
and then double click on the folder calleddebug
. If its not in there click on the other folder which is calledrelease
, if you managed to accidently compiled a release version of your program. And there it is, your first made.exe
file.:cool:Simple Greetings and Regards, Brandon Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst). Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
-
well i know how to program , i am talking about compiling about 500 C++ and .h files in one time and make the program thats what i am talking about, well thank you any way
OmarSH wrote:
...i am talking about compiling about 500 C++ and .h files...
Are they all part of the same project?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
OmarSH wrote:
...i am talking about compiling about 500 C++ and .h files...
Are they all part of the same project?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
yes , i said i downloaded the source code of a program and i dont have idea, any thing could help
In that download, were there any project-specific files (e.g., DSW, DSP, SLN)?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
In that download, were there any project-specific files (e.g., DSW, DSP, SLN)?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
no, nor of visual studio files are included ,it has configure files and other files that could make it done easily on linux ,i can build and install it on linux , but i need to build it just for windows ,
OmarSH wrote:
...but i need to build it just for windows ,
Console, EXE, or DLL?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
OmarSH wrote:
...but i need to build it just for windows ,
Console, EXE, or DLL?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
no, any way the program called( Lammps) ,it is program education, you can download the source code from sourceforge http://sourceforge.net/projects/lammps/[^]
OmarSH wrote:
no...
So is it a service then? If it's not any of those four, what type of Windows program are you trying to create?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
OmarSH wrote:
no...
So is it a service then? If it's not any of those four, what type of Windows program are you trying to create?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
well, thank you for interesting , any way if you have see the link ,and downloaded the source code , you may have better vision because i started programming in c++ from no more than one years ,and this is the first time that i want to do something like that,most of my program were no more than one or two C++ files and a header, this my programming background ,so i don't know how to explain more than that.. i really need help and advice to explain more..
-
well, thank you for interesting , any way if you have see the link ,and downloaded the source code , you may have better vision because i started programming in c++ from no more than one years ,and this is the first time that i want to do something like that,most of my program were no more than one or two C++ files and a header, this my programming background ,so i don't know how to explain more than that.. i really need help and advice to explain more..
Start by creating an empty Windows program (whether you opt for console or Win32 is up to you), then add to it those files you downloaded.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous