> I am having trouble with FLTK displaying a window for a 
> helloWorld program, and I was hoping that someone could help. 
>  I am running Win7 with VC++ 2008 Express Edition, and I have 
> the following code:
> 
> #include <FL/Fl.h>
> #include <FL/Fl_Box.h>
> #include <FL/Fl_Window.h>
> 
> int main()
> {
>       Fl_Window window(200,200,"Window Title");
>       Fl_Box box(0,0,200,200,"Hello World!");
>       window.end();
> 
>       window.show();
>       return Fl::run();
> 
> }
> 
> It compiles no problem, but no window is shown at all.  
> Anyone have a clue?  

Your code is fine - works OK for me (tested on winXP with mingw - don't
have win7 or VC).

Not sure what to suggest - do the examples in the test folder all work
OK? If not, I'd have to guess that something is hosed in your set up...

If you run the exe from the debugger, does that indicate anything?

Is the behaviour the same if you launch the exe from within VC as it is
when you launch it by double-clicking from explorer?

I'm not familiar with recent versions of VC - but I presume there is
still an output window somewhere that logs the results of running your
application? If so, is it saying anything interesting?






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

Reply via email to