Go to the Penn State Home page

Go to the CLC Home page

Go to the ITS Home page
This site uses .Net links. Please use Text Only version for screen readers.  Text Only Printable Version    Secure Server Search CLC:   
   
  CLC Home
  News
  Labs
  Introduction
  Locations
  Current Usage
  Help
  Windows
  Help
  Software
  Hardware
  Macintosh
  Linux
  Software Installs
  Classrooms
  Assistive Technology
  Printing
  Disk Space
  Authentication
  Lab Admin Support
  Contacts
  About Us
  Search

Microsoft Visual Studio .NET 2005

Migrating projects  or creating new projects under Microsoft Visual Studio .NET 2005 require attention to the following topics:

Configuring Microsoft Visual Studio

The first time you launch Microsoft Visual Studio, you must chose a Default Enviroment:

De

Once you make your selection, Visual Studio displays a message it is configuring the Environment for the first time use.

When you use Online Help for the first time, Microsoft displays the Online Help Window.  Choose Use Local Help as primary source:


 

You can set this in the Options Help Online Menu.

Creating Projects

All programs written in .NET require you to create projects.

To create a new project, click File > New > Project. A window resembling the
following appears:

Select a Project Type (Basic, C++, etc.) and a Template from the right hand pane.

Give the project a name and verify that the location to be in your My Documents folder - V:\My Documents\Visual Studio Project.

Click the OK button.


Your Visual Studio .NET Folder

The first time you create a project, Visual Studio .NET select to install it in the folder Visual Studio Project in your My Documents folder.  This allow each of your projects to be a folder within V:\My Document\Visual Studio Projects when you create a new project.


Known Problems


Hello World Program in C++

 

// HelloWorld.cpp : Defines the entry point for the console application.

#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
cout << "Hello World from C++" << endl;

return 0;
}

#include <iostream>  defines the global stream objects of cin, cout,  cerr, etc.
using namespace std;  allows the names in a namespace std to be used without the namespace-name as an explicit qualifier.

 

And to read and display a name in the Hello World program,  add the following three bold lines;

// HelloWorldPlus.cpp : Defines the entry point for the console application.

#include <iostream>
#include <string>
using namespace std;
int main(int argc, char* argv[])
{
cout << "Type in your name: ";
string s;
cin >> s;
cout << "Hello " << s << " from C++" << endl;

return 0;
}

 

 


Intel Visual Fortran Projects

To create an Intel Visual Fortran project, do the following:
1. Click IntelĀ® Fortran Projects in the left pane (as shown above) to display the
Intel Visual Fortran project types.
2. Click the appropriate project type.
3. Accept or specify a project name (shown above as Console1).
4. Accept or specify the Location for the project directory.
5. Click the OK button. To assist you with project creation, Intel Visual Fortran
provides an Application Wizard.
An Application Wizard window appears for the selected project type. For Console,
Dynamic Link Library, Static Library, and Windows application projects, the Application
Wizard window lets you select options for creating the project. For example, when you
create a Console project, click Application Settings in the left margin to display
the Application Wizard options.
Once you click the OK

Understanding Intel Visual Fortran Project Types
Development is organized into projects consisting of the source files required to
build an application. To set up a project, you need to define the project and set
options for it. Then, using the source files, you can build the binary executable or
library file. The output of building the application becomes part of the project. A
project is stored in a project folder on your hard drive.
Intel Visual Fortran projects can be a main program, or they can be a subprogram
in the form of a static or dynamic link library.
If the Intel Visual Fortran project is a main program, it must be one of the
following project types:
 Console application. When you run a Fortran Console application, it
displays a single character-cell terminal window. The programmingcomplexity for a Console application is simple, since the output resembles
character-cell applications (no graphics).
 QuickWin application. When you run a Fortran QuickWin application, it
displays as multiple windows with graphics such as menus, charts, and
icons. Programming complexity ranges from simple to moderate,
depending on the graphics and user interaction used.
 Windows application. A Windows application provides full access to the
Win32* APIs, giving you a larger (and different) set of functions to work
with than QuickWin projects. The programming complexity for Windows
applications is typically more complex than with Console or QuickWin
applications.
If your Intel Visual Fortran project is a subprogram that is linked into a main