- Messages
- 57
- Country

Hi guys,
I am using the new VS11 beta (although this has been tried with VS2010 as well), and I cannot for the life of me get the code to work. It tells me the gaugehdr data is undefined, despite having the appropriate #define information. The code I think will be helpful has been included, please make sure to ask me if I have left something crucial out of my examples. If there is a setting in the IDE or an actual code mistake, please let me know. I haven't figured my way around the FSX/C++ environment quite yet.
in 737clx.cpp (my master source file)
------------------------------------
#include "inc\gauges.h"
#define GAUGE_NAME "info\0"
#define GUAGEHDR_VAR_NAME gaugehdr_info
#define GAUGE_W 100
#include "info.cpp"
GAUGE_TABLE_BEGIN()
GAUGE_TABLE_ENTRY(&gaugehdr_info)
GAUGE_TABLE_END()
--------------------------------------
I appreciate anyone's help,
I am using the new VS11 beta (although this has been tried with VS2010 as well), and I cannot for the life of me get the code to work. It tells me the gaugehdr data is undefined, despite having the appropriate #define information. The code I think will be helpful has been included, please make sure to ask me if I have left something crucial out of my examples. If there is a setting in the IDE or an actual code mistake, please let me know. I haven't figured my way around the FSX/C++ environment quite yet.
in 737clx.cpp (my master source file)
------------------------------------
#include "inc\gauges.h"
#define GAUGE_NAME "info\0"
#define GUAGEHDR_VAR_NAME gaugehdr_info
#define GAUGE_W 100
#include "info.cpp"
GAUGE_TABLE_BEGIN()
GAUGE_TABLE_ENTRY(&gaugehdr_info)
GAUGE_TABLE_END()
--------------------------------------
I appreciate anyone's help,

