160 likes | 291 Views
CSCI 230 Computing-I. Welcome to CSCI 230! Compiling Your First Program Using Microsoft Visual Studio 2005. Objectives for the Lab. Learn the difference between client-side and server-side programming Learn how to open an empty solution and project under Visual Studio .Net
E N D
CSCI 230Computing-I Welcome to CSCI 230! Compiling Your First Program Using Microsoft Visual Studio 2005
Objectives for the Lab • Learn the difference between client-side and server-side programming • Learn how to open an empty solution and project under Visual Studio .Net • Compile and run a simple program
Client-side vs Server-side compiling • Environment setup • Install MS VS .Net 2005 from iuware.iu.edu • Client-side compiling runs locally on your computer • Requires installation of a compiler on your system • Consumes local CPU and hard disk space • No network (internet) connectivity required • Service-side compiling runs remotely on a server • Requires remote access software such as SSH available from iuware.iu.edu • Server is typically more powerful CPU and has more storage. • Typically used for larger projects • Easier to implement team development environment • Normally uses a command line interface rather than graphical • Network (internet) connectivity required • Used for business applications that require production infrastructure (production monitoring, nightly backups, etc.)
Start Microsoft Visual Studio 2005 • Start → All Programs → Microsoft Visual Studio 2005 → Microsoft Visual Studio 2005
Starting for the first time • The first time you run MSVS, you might get a window like this. • Use General Development Settings if you have no preference.
Initial MSVS Dialog • Here is an image of the initial MSVS Dialog.
Opening a New Project • Open a project using File → New → Project…
Choose a Project Type and Name • Choose a Visual C++ Win32 Project Type • Choose Win32 Console Application • Enter a name for your project.
Project Settings • Choose Next > from the initial dialog.
Project Settings (continued) • Be sure to select Empty project and Finish.
Add a New Item • Right-click on Source File and Add a New Item.
Create a main.c • Choose Visual C++ Code, C++ File named main.c.
Enter your program into main.c • Enter a standard C program into main.c. You get to use your mouse, copy, paste, and everything!
Start your program • Select Debug → Start without Debugging.
Examine your output • Your program ran. Check it out!
Congratulations! • You created a new Microsoft Visual Studio 2005 Project. • Selected Visual C++ Win32 Console Application. • Created your own main.c file, entering code just like in class. • And started your program to produce output/ • All of this using an easy editor and never logging onto the internet.