Monday, October 25, 2010

Useful tool for Snippet Compiler



Snippet Compiler is based on Windows? Small application, you can use it to write, compile and run code. If you have a small code segment, and you do not want to create a complete in Visual Studio. NET project (Yi Ji all the files associated with the project), then the tool would be useful. NOTE: Visual Basic 6.0 the previous version can not save the project file in the case of direct running, debugging, very convenient. This feature in the preparation of a small program as long as the provisional time very useful. Visual Studio.NET and later to have the same as Visual C + + to create, save many documents, and even a very small project. However, Visual Studio 2005 Express is said to feature again after the restore, and it sounds great.
For example, suppose I want to show you how from Microsoft?. NET Framework launch another application. In the Snippet Compiler, I will create a small console application to create the file began. In the console application's Main method to create code fragments inside, and this is what I want to do here. The following code fragment demonstrates how. NET Framework to create an instance of Notepad:

using System;
using System.Collections;

public class MyClass
(
public static void Main ()
(
System.Diagnostics.Process proc = new System.Diagnostics.Process ();
proc.StartInfo.FileName = "notepad.exe";
proc.Start ();
proc.WaitForExit ();
)
)






Of course, can not compile the code fragment itself, which is Snippet Compiler comes. Figure 1 shows the Snippet Compiler of this code example.






Figure 1Snippet Compiler

To test this code snippet, simply click play (run) button (green triangle), it will run in debug mode.

The code fragment will generate a pop-up console application, and will appear in Notepad. When you close Notepad, the console application will be shut down.

For me personally, I was trying to help someone who told me to create a small sample, they find Snippet Compiler is so valuable - if you do not use the tool, I usually have to create a new project, to ensure that each Some can compile, and then sent to the callers code fragment, and remove the item. Snippet Compiler makes this process easier and more enjoyable.







Recommended links:



set up with WINDOWS server 2003 web server



An example OF Style



DVR-MS to MPEG



C + + / CLI object of speculation recorded the Object Layout



Simple Desktop



PMA pre-dinner appetizer summary of CES New Digital Cameras



Jobs sick industry concerns raised



Cybersquatting: Business Down? Injury Or Down?



Test emergency response capacity of cities: urban emergency on the ROAD



Directory Cartoons - Screen Savers



AVI To MOV



Vivid Is The Catalyst For The Terminal To Boost Sales



Anti-Virus Tools CATALOGS



Wu Ying said that the potential of IPTV to PHS next year is the top priority



DAT To MP4



Specialist Font TOOLS



No comments:

Post a Comment