> The problem is that I put a Call Back function on one of the > buttons. The function is supposed to just do a simple prinf > command. When I pushed the button nothing came up on the > output window of Visual Studio. > > So to recap. The program compiles fine and the GUI is > created, but the function on the button isn't working. > > Can anyone help? thank you.
I think this may be due to a basic problem with the way that win32 systems generally handle stdio. The MS tools build GUI apps in such a way that the stdio is detached, so printf output is lost. You can build your app to specifically have an output console (I think that's /m:console in the VC compiler command options, but I never use the MS tools so am probably wrong) and then you should see your printf output there. Failing that, do what I do: use mingw in an Msys shell rather than the MS tools, then stdio works "properly" and all is well! Cheers, -- Ian 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. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

