[EMAIL PROTECTED] wrote: > #include "window.h" > ... > DFBWindowDescription desc; > desc.flags = DWDESC_WIDTH | DWDESC_HEIGHT | DWDESC_CAPS; > desc.caps = DWCAPS_ALPHACHANNEL | DWCAPS_DOUBLEBUFFER; > desc.width = 600; > desc.width = 800; > dfbWindow = theApp->createWindow(desc, ismain); > > and here is the error I have: > > window.cpp: In constructor 'dtk::window::window(bool)': > window.cpp:30: error: invalid conversion from 'int' to > 'DFBWindowDescriptionFlags' > window.cpp:31: error: invalid conversion from 'int' to 'DFBWindowCapabilities' > > Did I miss something? >
I got around this by using: desc.flags = DFBWindowDescriptionFlags(DWDESC_WIDTH | DWDESC_HEIGHT | DWDESC_CAPS); etc. to cast the types. I consider this a workaround though - I think the specific defines should really be written such that the assignment can be done as in your original code. I suspect most people end up in this situation with ++dfb. Regards, James. _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
