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