>I have created an include file that I want to use in all the classes in my vcx.
>My question is where do I #include it? Do I have to #include it in every method or can I just put it in one place that will be seen by the entire library?
If you have already created your classes, the _INCLUDE system variable won't work because it is not retroactive. It will work on newly created classes. To retrofit your existing classes, do the following:
1. Open your VCXs as a table (i.e. use myclasslib.vcx alias insrc)
2. Execute the following SQL statement: update incsrc set reserved8 = "MyIncludeFile.H" where !empty(class) and !empty(baseclass)
3. Close the VCX.
4. Compile the VCX (compile classlib myclasslib all)
You should be good to go.
HTH.
FWIW, I will be posting a utility that does this for class libraries, forms and menus in a specified directory today sometime.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao