Hi all. I'm working on creating a music player in FLTK. Basically I'm having an issue with a global variable. I have int songCounter declared outside of main in source file only, a double window, and a few buttons inside the window to manipulate cycling through the playlist. songCounter is initialized to 0 at the start of the program. I have a forwards and backwards buttons in my window, which increment and decrement songCounter. Using the output boxes built into FLTK show that songCounter is being incremented/decremented successfully, but the first song plays over and over again. My guess is that instead of incrementing or decrementing songCounter directly, they're somehow creating local versions of the variable to work with instead. Any ideas on how to work around this?
Thanks, Jason _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

