>>Hi Is there any way I can add my own compile rules?
>>
>>For example if a developer uses SUSBTR() in the code I want to flag an error during compile (or at some other time). Because we need them to use SUBSTRC() instead due to double byte requirements.
>>
>
>Tim,
>
>You can use ProjectHook BeforeBuild Event to do any checks and even cancel build by issuing NODEFAULT. Another way to prevent the problem is to use a heder file with something like
#DEFINE SUBSTR SUBSTRC
Won't that cause the people who use SUBSTRC to throw an error trying to compile SUBSTRCC ? Including the ( should solve that.