>Hello Everyone!!!
>
>We have a security form that is classed. It can be used by serveral different applications. The thing that makes it useable is the ability to use a different header file for each application.
>The problem is that the only way we can get the include file to work is to set it up in the menu of the classed form. ie.. Class ->Include File...
>This requires us to change the path of the header file before compiling the project. If we forget to change the path we will get an error.
>
>Question:
>How can we get the include file to work without using it in the include File menu option?
>We have tried putting it in the init of the form and in the load, but nothing works.
>
>Thanks in advance
Leroy,
Adding the header file via the menu or manually inserting into the Reserved8 field (which is what the menu option does) is the only way to have the file available for all methods in the class.
If you don't specify it there, you have to have the #INCLUDE directive at the top of each and every method for the #DEFINEs to be used.
One thing you could do is create a ProjectHook and use it to do the insertion into Reserved8 when you build the project. That way you would know that is was always done and you wouldn't need to worry about any more.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao