Load in Your Code - Microsoft Visual Studio-Based Approach
5a. specify that you're adding a new data source
Open the Data Sources dialog (MENU Project > Data Sources)
. To specify that you wish to add a new data source into the project rather than modify the settings for an existing data source, choose `+ new data source' under the Data Sources selector on the left side of the dialog. As this is a new project, and there are no existing data sources to modify, this is indeed the only choice available.
5b. select the MSVC project or MSVC solution-based approach
For the rest of step 5, you'll be working on the right side of the Data Sources dialog. At the top, in the menubutton labeled `Select Data Source Type', select one of the [Source Files][Microsoft Visual Studio]
alternatives. Use MSVC Project to load in the files associated with one specific project. Use MSVC Solution / Workspace if you want to load in the whole solution (called a workspace in older versions of Visual Studio).
5c. specify the version of MSVC being used
To the right of the Type field, specify which version of MSVC you are using. This selection causes other parts of the dialog to change, since the various versions of MSVC use different file types to store information about the project.
5d. specify the location of your MSVC project / solution file
Imagix 4D will process a specific file type for information about your code. That file type will vary depending on your selections for Type and MSVC Version. For example, if you've selected MSVC Project and Visual Studio .NET, the associated file type is a .vcproj file. In the resulting .vcproj File field, enter the full path name of the .vcproj file generated for your project by MSVC. Typically, this is located in the top-level MSVC project directory, and is named project
If you've selected MSVC Project and makefile (available only under Windows), then, in the Makefile field, enter the full path name of the makefile generated for your project by MSVC. Typically, this is located in the top-level MSVC project directory, and is named project.mak, where project is the name of your MSVC project.
5e. specify any directories containing pre-compiled headers
When pre-compiled headers are used, information about the include directories containing the original header files, from which they are compiled, may not be available in the MSVC project settings. In this case, you need to explicitly specify these directories so that the Imagix 4D analyzer knows where to look for the header files.
In the Options field, enter the directory names using the -I (or -S) syntax `-Idirname' for each directory containing the header files. You may enter as many -I's as required. Do not put a space between the -I and the following directory name. Put a space between the name and the next -I.
5f. specify which MSVC project configuration you want to examine
In the Configuration combobox, select the configuration of Visual Studio project that you want to build. Leaving the selection as (default) will result in the current configuration of the MSVC project to be analyzed whenever the Imagix 4D project's data is regenerated. This combobox is not available for solutions, where the current configuration is always used.
5g. specify your normal compilation environment
Specify what compiler you use and what platform you build for. If your combination of compiler and target is listed in the `Compiler & Target' combobox, select it (see step 3a). Normally, this will be msvc_win.
5h. start the analysis process
When you're ready to analyze your code, click Add Data Source at the bottom of the dialog.