March 13, 200521 yr I'm trying to expand the functionality sdk.flightmap.c and have renamed it as a C++ file - "sdk.flightmap.cpp". Now when I build I get the this error:error C2440: '=' : cannot convert from 'PVOID' to 'GPS_INFO *'snip/////////////////////////if (!gpsinfo){ MODULE_VAR var; initialize_var_by_name (&var, GPS_INFO_PANEL_VARIABLE_NAME); gpsinfo = var.var_ptr; //this line is the indicated culprit}/////////////////////////I'm very new to programming and need help to fix this.RegardsBlair
March 13, 200521 yr Blair,The line has to read: gpsinfo = (GPS_INFO *)var.var_ptr;You can't discard the cast like that.Doug Dawson
Create an account or sign in to comment