- Messages
- 368
- Country

I've been using the ESP example DL gauge for various projects up to P3D3 with no real problems, mainly so I can use SimConnect to tweak the engine handling, add external stores etc. Obviously with the move to 64-bit they need to be recompiled, however after setting the project to 64-bit and pointing towards the P3D4 inc and lib files I get the following error:
error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'PGAUGE_CALLBACK'
along with that I get a second message:
IntelliSense: no instance of function template "GDIPlus_Gauge::Callback" matches the required type g:\Users\Bing\Dropbox\Gauges\GDI+Gauge\GaugeDeclarations.cpp 26 1 GDIPlus_Gauge
The associated block of code is:
GAUGE_HEADER_FS1000(
GAUGEHDR_VAR_NAME,
GAUGE_W,
transparent_gauge_name,
&gaugeTransparent_element_list,
gaugeTransparent_mouse_rect,
GDIPlus_Gauge::Callback<TransparentGauge>,
0L, 0L,
gauge_guid2,
0, 0, 0, 0, 0);
To eliminate anything I may have done I went back to the original example code which generated exactly the same problems. Has anyone got any ideas what might need updating to get the code to compile for 64-bit?
error C2440: 'initializing' : cannot convert from 'overloaded-function' to 'PGAUGE_CALLBACK'
along with that I get a second message:
IntelliSense: no instance of function template "GDIPlus_Gauge::Callback" matches the required type g:\Users\Bing\Dropbox\Gauges\GDI+Gauge\GaugeDeclarations.cpp 26 1 GDIPlus_Gauge
The associated block of code is:
GAUGE_HEADER_FS1000(
GAUGEHDR_VAR_NAME,
GAUGE_W,
transparent_gauge_name,
&gaugeTransparent_element_list,
gaugeTransparent_mouse_rect,
GDIPlus_Gauge::Callback<TransparentGauge>,
0L, 0L,
gauge_guid2,
0, 0, 0, 0, 0);
To eliminate anything I may have done I went back to the original example code which generated exactly the same problems. Has anyone got any ideas what might need updating to get the code to compile for 64-bit?


