> I try to isolate the MFC code in one module,and fltk coke in 
> other module, and define a neutral interface to communicate . 
> It seems work.

I would still caution aginst that approach, and urge you to consider
SPTK as an alternate. But if it is working for you, good luck with it!


> But I still have problem with icon,using previous LoadIcon 
> code, compiler said "IDI_ICON1 is not defined". I have create 
> a new icon , save as myIcn.ico file, how can I assign this 
> icon to my fltk window?

You need to provide the necessary resource headers and so forth to allow
the application to identify the icon, including defining values for the
entry.

Look at the way that the sudoku example in the test folder builds for a
win32 platform - see how the icon resources are attached and compiled
for that, and copy that mechanism for your code.






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