Hi Nikita,

On Mon, May 23, 2011 at 12:47 AM, Nikita Egorov <[email protected]> wrote:

> int xmain(int argc, char* argv[])
> {
> Fl_Window* w = new Fl_Window(100,100);
> //bla-bla-bla
> return 0;
> }
> And I set the entry point as "xmain"
>


> Properties->Linker->System->SubSystem="windows"
> Properties->Linker->Advanced->Entry point = "xmain"
>
> All OK! Size of working program 4K :-)
>

I set the entry point to my own main(). The application does work that way
but it hangs when you close it. I think calling main() from WinMain (that
ideally should sit somewhere in the static fltkdll.lib stub) should be given
preference; this allows the application to end normally.

Peace, Asif
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to