Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Embedded #includes not being found
Message
From
23/08/2007 17:57:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Embedded #includes not being found
Miscellaneous
Thread ID:
01250057
Message ID:
01250057
Views:
61
I'm having some trouble with embedded #includes within a visual class (.vcx) file. I've placed the path and name of the include file in the dialog box, Class->Include File. Say that is projectSpecific.h.

Now within projectSpecific.h I have another #include which points to a more or less common.h file that I use across many of my projects.

projectSpecific.h:
#include common.h

#DEFINE BANG_CHAR        CHR(33)
#DEFINE COLON_CHAR       CHR(58)
#DEFINE COMMA_CHAR       CHR(44)
...
The problem I am experiencing is that #defines that are defined in the common.h are not being found when the class get instantiated. Both .h files are located in the same folder that the .vcx is.

1) At what point do the #include includes get inserted into the class file before the compile happens? Is this when you do a file->save of the vcx or at run-time?

2) Does anyone have any suggestions as how I should go about troubleshooting this?
Bruce Crane
Software Engineer
Regulus Integrated Solutions, LLC - Napa
Next
Reply
Map
View

Click here to load this message in the networking platform