- Messages
- 3
Hi guys, I have a couple of questions, maybe someone will be able to help. 
I'm trying to start a gauge project from scratch on Visual Studio 2013 but I'm running into a problem getting the SDK style file structure to work.
I'm trying to create a multiguage project with a radio unit as the first subgauge. Following the SDK's sample structure I have the following files:
GaugeTest.rc
GaugeTest.h
GaugeTest.cpp:
and at the beginning of Radio.cpp I have:
The problem is that in Radio.cpp all #define identifiers from fsxgauges_sp2.h and GaugeTest.h show as undefined, but the same structure on the SDK samples works. I thought the line #include "Radio.cpp" would make Radio.cpp "see" fsxgauges_sp2.h and GaugeTest.h. Maybe I'm missing some configuration settings?
Second questions:
Does anybody have the GDI+ code sample from http://msdn.microsoft.com/en-us/library/dd262188.aspx or know where can I download it? The link on the page says that "The Archive Gallery has been retired."
Thanks!
I'm trying to start a gauge project from scratch on Visual Studio 2013 but I'm running into a problem getting the SDK style file structure to work.
I'm trying to create a multiguage project with a radio unit as the first subgauge. Following the SDK's sample structure I have the following files:
GaugeTest.rc
GaugeTest.h
GaugeTest.cpp:
Code:
#include "inc\fsxgauges_sp2.h"
#include "GaugeTest.h"
#include <stdio.h>
#include <cwchar>
#include <math.h>
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_WARNINGS
#define GAUGE_NAME "Radio"
#define GAUGEHDR_VAR_NAME gaugehdr_radio
#define GAUGE_W 100
#include "Radio.cpp"
GAUGE_TABLE_BEGIN()
GAUGE_TABLE_ENTRY(&gaugehdr_radio)
GAUGE_TABLE_END()
and at the beginning of Radio.cpp I have:
Code:
char radio_gauge_name[] = GAUGE_NAME;
extern PELEMENT_HEADER radio_list;
extern MOUSERECT radio_mouse_rect[];
GAUGE_HEADER_FS700(GAUGE_W, radio_gauge_name, &radio_list, radio_mouse_rect, 0, 0, 0, 0);
(etc...)
The problem is that in Radio.cpp all #define identifiers from fsxgauges_sp2.h and GaugeTest.h show as undefined, but the same structure on the SDK samples works. I thought the line #include "Radio.cpp" would make Radio.cpp "see" fsxgauges_sp2.h and GaugeTest.h. Maybe I'm missing some configuration settings?
Second questions:
Does anybody have the GDI+ code sample from http://msdn.microsoft.com/en-us/library/dd262188.aspx or know where can I download it? The link on the page says that "The Archive Gallery has been retired."
Thanks!







