On 24.05.2011 11:32, asif saeed wrote:
>> 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 think that winmain.h is a good choice, isn't it?
> ... 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.
That's what #ifdef FL_DLL is for (it's already there and must be
defined by the user anyway.
Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk