Making my programs executable?

I am fairly new to programming, and going to college for Software Engineering (just started); I was just wondering once you get all the code written out, and everything in place like you want it, how do you convert it to an .exe to where it will run onany machine? Any help would be appreciated!
[305 byte] By [darkwarrior0404] at [2007-12-22]
# 1

Simply compile the project.

Build > Build solution, and this will output it (depending on the project type) to an .exe file.

On order to run it on other people's computers, they must have the latest version of .NET Framework installed, otherwise it will not run.

You can create an installer for the project, which will automatically download the framework required on their PC if they do not have .NET Framework installed.

I believe .NET 1.1 was also built in Windows Server 2003, but dont quote me (original name for WS2003 was Windows Server.net)

.NET 1.1 is also built into Windows Media Centre Edition 2005.

Windows Vista will have .NET (3.0) built into it therefore it will be a standard thing built into Windows.

.NET has been around for 4 years now I believe and about 80% of Windows PC's have .NET Framework installed. This is downloadable via Windows Update, or through the Microsoft website.

hope it helps!

ahmedilyas at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2
That was helpful, but, how do you create an executable to where it runs on anyones computer? Not to many people are going to be able to upgrade to vista and 80% of the population dont know anything about installing the .NET framework, how do you make an executable?
darkwarrior0404 at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

almost everyone knows how to install software, .NET Framework is no different.

it is downloadable via Windows Update or through the Microsoft website.

Download it, and double click to install it.

http://www.microsoft.com/downloads/details.aspx?familyid=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en

That is .NET 1.1

.NET 2.0 download link:

http://www.microsoft.com/downloads/details.aspx?familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en

As said, you can also create an installer project, to create an installer to install your application and the installer will AUTOMATICALLY download the .NET Framework if it is not installed.

No one needs to upgrade their Windows OS (unless its Windows 95) in order to run .NET apps, .NET is a Framework required to run your .NET applications.

ahmedilyas at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 4
Well what I'm saying is, like before I had .NET framework installed, you can download programs from the internet etc., how do you create an application that will run on anything that doesn't have the .NET framework installed? Like for instance, my girlfriend doesnt have the .NET framework installed, I would like to just send a copy of the program I have "built" to her computer and she be able to run it without having to install all the extra software.
darkwarrior0404 at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 5

You cannot do this in .NET

anything created in .NET requires its resources/libraries (ie the .NET Framework)

in answer to your question, you would need to create these applications in VB, C++ or VC++

VB is now outdated and replaced by VB.NET, everything is going .NET now :-)

As said before, in the future you will not need to worry about having .NET on the computer since .NET is almost now a standard feature within the Windows OS, so you can write a .NET app and it will most likely run on Windows (Windows MCE 2005, and especially from Windows Vista and higher)

ahmedilyas at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 6
Alright thats what I was wanting to know thanks a lot, sorry if I got on your nerves! That answered my question!
darkwarrior0404 at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 7

no worries at all, we all learn from some place :-) Its my pleasure to help you, and anyone.

There are no right or wrong questions, in order to learn, you ask questions - which is exactly what you have done! :-)

Good luck ;-)

ahmedilyas at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...