I'm a bit new to programming. Read C++ for dummies but still can't figure this out. I want to convert all the Callback functions to use shared memory. The DB_Callback is an example of how it's done. I'm trying to figure out how to do the rest. Thanks for any help.
/*****************************************************************************/
/**************VISUAL_I::DB CALLBACK******************************************/
/*** Called when the Database is changed will use the shared memory *****/
/*** interface to change the selected database *****/
/*****************************************************************************/
void visual_i::DB_Callback(Fl_Widget *own, void* data)
{
visual_i * vis = static_cast<visual_i*> (data);
char command[] = "sceno";
int val = d_bases[vis->db_choice->value()];
if (val != 0)
{
sh_mem::set_int_value(command,val);
}
}
}
/*****************************************************************************/
/**************VISUAL_I::RESET CALLBACK***************************************/
/*** Called when the Reset Button is pressed, Used to reset to a default *****/
/*** set of visual parameters *****/
/*****************************************************************************/