Home TOC Previous Next


                   4.3  How Do I…

                               4.3.1  Create a Project Workspace

With Magic C++, there are essentially two ways to create a new project workspace:

  • Use a New Project wizard to create the initial project. Magic C++ wizards automatically create a project workspace that includes starter files appropriate for the project type. For more information about each type of wizard available with Magic C++, see Project types.

  • Create a blank project workspace yourself. In this case, you must create all the files, select the project(s) to include in the project workspace, and select the files to add to the project.

You must use this approach to create a workspace with a name or location different from the name and location for any of the projects it will contain. After you create the blank workspace, you can create a new project with a different server and insert it into the workspace at the same time.

To use the New Project wizard

1.     From the File menu, click New.

2.     In the New dialog box, click the Projects tab and select from the available project types to launch the wizard.

To create a blank project workspace

1.     On the File menu, click New.

2.     Click the Workspaces tab.

3.     Select Blank Workspace from the type list, and type a name in the Workspace Name box.

If necessary, specify the directory where the project workspace files are stored by using the Location box.

                               4.3.2  Viewing the Project Workspace Window

In order to view or hide the workspace window, you must have a workspace loaded.

To display the Workspace window

  • On the View menu, click Workspace.

To hide the Project Workspace window

1.     Place the mouse cursor anywhere in the Project Workspace window and right-click to display the shortcut menu.

2.     On the shortcut menu, click Hide.

                               4.3.3  Opening an Existing Project Workspace

To open an existing project workspace

1.     On the File menu, click Open Workspace.

2.     Select the drive and directory containing the project workspace that you want to open.

3.     Select the .wsp file for the project workspace from the File Name list and click OK.

To reopen a recently used project workspace

  • On the File menu, click Recent Workspaces, and then click the name of the recently used workspace.

-or-

On the File menu, click the name of the workspace.

To close a project workspace

  • On the File menu, click Close Workspace

 

                               4.3.4  Setting the Active Project

The active project is the project that will be built when you use the Build , Rebuild All commands.

To set the active project

  • On the Project menu, click Set Active Project and choose from the submenu of project names.

-or-

  • On the classview ,select a project and right-click the mouse , choose ˇ°set activeˇ± menu item.

                               4.3.5  Inserting and Deleting Projects

You can insert new or existing projects into your project workspace, and delete existing projects from the workspace.

What do you want to do?

Insert a new project into an existing workspace

Delete a project from a workspace

To insert a new project into an existing project workspace

1.     Open the project workspace to which you want to add a new project.

2.     On the File menu, click New and then click the Projects tab.

3.     Select the project type.

4.     Specify the Project Name and Location for the project.

5.     Click Add to Current Workspace.

6.     Click OK.

The new project that you just created becomes the default project in the workspace.

To delete a project from the workspace

  • From the FileView tab, select the project and press DELETE.

                               4.3.6  Adding and Removing Files from Projects

Note: You can not add file(s) that is on a different server to a project

If you add files from directories different from the project, Magic C++ uses absolute paths in the filenames for those files in the project's .prj file.

What do you want to do?

Add files to a project

Remove files from a project

To add files to a project

1.     Open the project to which you want to add files.

2.     On the Project menu, click Add To Project, the file dialog appears. If your project is on remote machine, this dialog will be a remote file dialog.

3.     In the Files of type box, specify the type of files to add.

4.     Select one or more files.

5.     Click OK.

To remove files from a project

1.     From the FileView pane, select the files that you want to remove.

2.     On the Edit menu, click Delete.

                               4.3.7  Upload and download project files and generate Makefile

Sometimes the files in project are not synchronized with remote servers,(i.e. you use an offline project),you can synchronize the files manually in active project.

On the Project menu ,click Force Upload whole project or Force Download whole project.

You can generate makefile for your remote project.

On the Project menu , click Generate Makefile.

                               4.3.8  Set a Project to be Online or Offline

Set a Project to be Offline

1 On the Project menu.Click settings

Check the Offline checkbox in the left of project setting dialog.

Click OK.

-or-

on the Classview or Fileview in workspace window, select an offline project ,then right click the mouse, choose Offline in the shortcut menu.

Set a Project to be Onine

1 On the Project menu.

2 clear the Offline checkbox in the left of project setting dialog.

3 Click OK.

-or-

on the Classview or Fileview in workspace window,select an offline project ,then right click the mouse, choose Offline in the shortcut menu.

4.3.9  Working with Project Configurations

Selecting the Directories for Output Files

1.     On the Project menu, click Settings, and select the Link tab.

2.     In the Project List ctrl, select the project item for which you want to set directories.

3.     Type in Output file name and directory then click OK

Selecting the Output Makefile

1       On the Project menu, click Settings, and select the C/CPP tab.

2       In the Project List ctrl, select the project item for which you want to set directories.

3       Type in the name of Makefile then click OK

Selecting the Working Directory

1       On the Project menu, click Settings, and select the DEBUG tab.

2       In the Project List ctrl, select the project item for which you want to set directories.

3       Type in the Working Directory then click OK

NOTE: you can also set environment variables and library directories , include directorieds , etc if necessary.


Home TOC Previous Next

Copyright(c) 2003-2004 Magicunix,Inc.