> > > > I don't know whether this is a problem of C++ compiler or the fltk. > > > > > > I was trying to access a global variable of the type (const=20 > > char *) in a callback function, which(the global variable)=20 > > was assigned a value through Fl_File_Input type widget. But=20 > > when I tried to access it (the global variable) in another=20 > > callback it showed a corrupted value(sort of:=20 > > "????/??(????????????\}" ). > > > I don't think I understand what you are asking... > If you want to modify this char *, why have you declared it const? > > > > > > SELEX Sensors and Airborne Systems Limited > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex= > SS14 3EL > A company registered in England & Wales. Company no. 02426132 > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** >
My compiler says "cannot change char * to const char *" when I try to use it for filename in fopen or a label in a widget. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

