How to get IntelliSense support

IntelliSense® is a feature of the Visual C++ text editor. If you are a Visual C++ user you should know about it!

 

Alas, IntelliSense does not support external headerfiles. In other words, it supports only the headerfiles that are part of a project (DSP file) of your workspace (DSW file).

 

Therefore that’s the whole trick: Get the ITLogLib headerfile ("ITLogLib2.h") into your workspace!

 

We have prepared a small project for you that already contains "ITLogLib2.h". This project is part of the installation of ITLogLib/Visual C++. Simply add it to your workspace and you will have IntelliSense support when writing logging code.

Project name: ITLogging2.dsp

Located in: ITLogging2\ITLogLib\VisualCxx (relative to the root directory of the ITL2 installation)

 

Here is in detail how to do it :

·      Open the Insert Project into Workspace dialog from Developer Studio’s Project menu.

image\insertitl2projectintoworkspace_in_help.gif

·      Locate and select the project "ITLogging2.dsp" from the subfolder "ITLogging2\ITLogLib\VisualCxx" of the ITL2 installation directory. But resist the temptation to press OK now!

·      Deselect the checkbox "Dependency of: ". Without that the project would become part of your build process. Now you can press "OK".

 

If you forgot to deselect "Dependency of: ", the project "ITLogging2.dsp" is regarded as a subproject of another project and therefore will probably become part of the build process. You can correct that in FileView by deleting "ITLogging2.dsp" from the subprojects list of that other project. On the other hand, compiling and linking "ITLogging2.dsp" is not really a problem, since this project contains headerfiles only.