> I am using 1.19 on windows. I developing an application to 
> operate on MS Access DB , so MFC is used. when I try to use 
> the code "icon((char 
> *)LoadIcon(fl_display,MAKEINTRESOURCE(IDI_ICON1)));" , I have 
> to include FL/x.h ,in turn ,it inclue windows.h . But 
> compiler report an error " MFC apps must not #include <windows.h>" .
> So , i still failed to assign icon to my window.

You can not mix MFC code with fltk code (well, perhaps you can, but to
do so is very difficult...)

If you plan to use fltk for your GUI functions, you will need to use
some other (i.e. Non-MFC) mechansim for accessing your database.

The best option is probably to use fltk and SPTK (http://www.sptk.net)
to do what you are trying to do. SPTK should be able to handle your
database access for you and works well with fltk.





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