On 12/14/09 23:14, Derrick wrote:
> Hi,
>
> 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?
> Thanks in advance!
Yes, the code works! You must be having other issues.
Under Linux I can type
g++ hello.cpp -lfltk -o hello
and it produces an executable named "hello" which does exactly what
you'd expect.
I'm afraid that I'm not familiar enough with VC++ to help, but at least
you know the code is fine.
Mike
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk