Compiling & Execution
When we have written a program we Start Debugging to execute the program. I wish to know when does the compiling begin and end, and when does the execution begin and end. Because book is separating compiling and execution. I attach the book page.

VulpesRank #55 · 29.2K reputationPosted Jan 4, 2012, 1:18 PM EST
Sean StewartRank #5,857 · 284 reputationPosted Jan 4, 2012, 6:02 PM EST
http://stackoverflow.com/questions/6312452/c-sharp-online-compiling-and-execution-security-issues
Sam HobbsRank #107 · 20.5K reputationPosted Jan 4, 2012, 7:55 PM EST
I think Visual Studio makes the difference crystal clear. You must build a project, then you execute it. The build does nothing unless something has changed that is a relevant part of the project; mainly source code. A build processes the files that are listed as input for the project using whatever tools such as the compiler that are designated for processing each type of file. The result is an executable file. The executable file can be executed many times, even a million times, without another build.
Languages such as C# and Java normally create an executable that is not directly executable but that use a virtual machine of some type. So what Vulpes says about intermediate language (IL) and metadata is true for languages such as C# and Java.
Before C# and Java existed, normally source code files would first be compiled and the output would be called object files. Then a linker would process all object files that need to go into a single executable.
Posted Jan 5, 2012, 2:32 AM EST
VulpesRank #55 · 29.2K reputationPosted Jan 5, 2012, 4:38 AM EST
Posted Feb 7, 2012, 3:58 PM EST
The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)
using System;
using System.Windows.Forms;
namespace fig9_1
{
class MessageBoxl
{
static void Main(string[] args)
{
MessageBox.Show("Hello");
}
}
}
Prime bRank #2,035 · 712 reputationPosted Feb 7, 2012, 4:05 PM EST
Sam HobbsRank #107 · 20.5K reputationPosted Feb 7, 2012, 4:10 PM EST
Maha, what kind of project is it? I assume it is a console project. Did you add a reference for System.Windows.Forms? Probably not.
Note that this is a new question so a new thread should have been created for it.
Posted Feb 7, 2012, 4:20 PM EST