Posts

Showing posts from August, 2011

How to Run your C# Programmes

Image
You can test your programme a number of ways. First, though, it has to be built. This is when everything is checked to see if there are any errors. Try this: From the View menu at the top of Visual C# Express, click Output . You’ll see a window appear at the bottom. (In C# 2010, if you can't see an Output entry, click the Tools menu. From the Tools menu, select Settings > Expert Settings . The Output menu item should then appear on the View menu.) From the Build menu at the top of Visual C# Express, click Build Solution You should see the following report: The final line is this: Build: 1 succeeded or up-to-date, 0 failed, 0 skipped That's telling you that everything is OK. Now try this: Delete the semicolon from the end of your line of code Click Build > Build Solution again Examine the outpu...

Your first line of C# code

Image
The only thing we'll do with the code is to write some text to the screen. But here's the code that Visual C# prepares for you when you first create a Console Application: For now, ignore the 3 lines that start with using (we'll get to them later in the book). But they add references to in-built code. The namespace line includes the name of your application. A namespace is a way to group related code together. Again, don't worry about the term namespace, as you'll learn about these later. The thing that's important above is the word class . All your code will be written in classes. This one is called Program (you can call them anything you like, as long as C# hasn't taken the word for itself). But think of a class as a segment of code that you give a name to. Inside of the class called Program ...

Saving your work in C# .NET

Image
When you save your work, C# will create quite a few folders and files for you. Click File from the menu bar at the top of the Visual C# Express software, then Save All : When you click Save All, you'll see the following dialogue box appear: You can type any name you like for your project. The default Name is ConsoleApplication1 . Have a look at the location of the project, though: C:\Users\Owner\documents\visual studio 2010\Projects In XP, however, you'll see something like this: C:\Documents and Settings\kayspc\My Documents\Visual Studio 2008\Projects So it's going to be saved to the "documents" folder of this computer. In the "documents" folder you'll find another one called Visual Studio 2010 . In this folder there will be one called Projects . Before clicking the S...

How To Find Out If You Can Run That Game On Your PC

Image
Can You Run it ?       This site provides a One-Click solution that looks at your computer's hardware and system software to determine whether or not your current system can run a product. Each of your computer's components is evaluated to see how well it meets the minimum and recommended requirements for specific products. Recommendations are made on how to update or upgrade each component which does not meet the listed requirements. Sometimes, a simple, free software download is all that is needed. Sometimes you'll find that you need a different video card to fully experience what the game has to offer. -->>> Click Here to Check your PC