Because the TEMPLATEREGISTRY compiler option does not
impose any restrictions on the file structure of your application,
it has less administrative overhead than TEMPINC. You can
make the switch as follows:
- If your application compiles successfully with both TEMPINC and NOTEMPINC,
you do not need to make any changes.
- If your application compiles successfully with TEMPINC but
not with NOTEMPINC, you must change it so that it will
compile successfully with NOTEMPINC. In each template declaration
file, conditionally include the corresponding template definition
file if the __TEMPINC__ macro is not defined.
This is illustrated in TEMPINC example.