Re: having difficulty getting the unit to use an include file



pr wrote:
"Adam Sandler" <corn29@xxxxxxxxxx> wrote in message news:1125351705.989233.5850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've searched this group for info about include files but mostly found
debate on why someone would want to use them.  I see value in include
files as code templates and was wondering if anyone could show me where
I'm going wrong.

I may not be correct but changes made to include files do not result in an automatic recompilation of a project. Just think of the nice bugs you can create by this.

You can remember where and when you made changes
and manually manage your project, I prefer to apply my
brain power to different things.

If you're writing code for multiple compiler versions, having an include file with all the versions mapped to usable compiler symbols is very helpful, and not something you can do with the "Directories and Conditionals" section of the project options. See nearly any open-source project for examples.


Likewise, if you want anything close to code templates in Delphi, you'll need to use includes.

--
Rob
.