iNTERFACEWARE Products Manual > Installing and Using Chameleon > Language API Documentation > C++ Support > Precompiled Headers |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
One aspect of the Chameleon generated example projects which can be confusing, is how the pre-compiled headers are set up. Most Visual C++ programmers are used to seeing the use of a standard stdafx.h header file for setting up precompiled headers. The example C++ project produced by Chameleon uses a different approach. Basically, one file in your project is responsible for creating the pre-compiled header file. This is set up in the Visual C++ project settings dialog: Every other file in the project is configured to use this precompiled header. This is also viewable in the project settings dialog: As a result of these settings, it's important that every cpp file in the project has the following included and pragma at the start:
More information about this pragma can be obtained by reading about it in the Microsoft Developers Network (MSDN).
|