Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.
void FSAPI Callback(GAUGEHDR* gau, int serviceId, unsigned) {
switch (serviceId) {
case PANEL_SERVICE_CONNECT_TO_WINDOW:
{
// when the panel service starts, we create the C++ gauge object
// that we'll store as an opaque pointer in user_data
assert(gau->user_data == 0);
gau->user_data = reinterpret_cast<UINT32>(new TransparentGauge);
PELEMENT_STATIC_IMAGE mCanvas = reinterpret_cast<PELEMENT_STATIC_IMAGE>(gau->elements_list[0]);
reinterpret_cast<TransparentGauge*>(gau->user_data)->mCanvas = mCanvas; // offending line
break;
}
// continue
}
}
typedef void FSAPI GAUGE_CALLBACK( PGAUGEHDR pgauge, SINT32 service_id, UINT_PTR extra_data );
gau->user_data = reinterpret_cast<UINT32>(new TransparentGauge);
gau->user_data = reinterpret_cast<UINT_PTR>(new TransparentGauge);