Hello Albrecht,

Yes, something like that.

On Tue, May 24, 2011 at 1:08 PM, Albrecht Schlosser
<[email protected]>wrote:

> I'm sorry, but I have no idea how this should work. Do you mean to
> include the complete WinMain() function in a header file that should be
> included by the user's program? In fact the compiler doesn't know of
> /subsystem:windows, since this is a linker option, but we could maybe
> create something like this *minimal* header to be included in your
> main program or somewhere else:
>
> FL/winmain.h:
>
> #ifdef FL_DLL
> #include <Windows.h>
> // int main (int, char **); // should probably not be here ?
> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
>                              LPSTR lpCmdLine, int nCmdShow) {
>   return main(__argc,__argv);
> }
> #endif // FL_DLL
>

May be you can name such header dll_linked_app.h or something like that. I
have done the same thing. But the best thing would be to generate this based
on conditional compiler directive and make it clear to the users to include
it if they want to develop/link their app with FLTKDLL.

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

Reply via email to