On 21.01.2012 09:55, Richard Sanders wrote:
> I have a run-time loaded dll (load/ unload on demand). The dll has a
> single entry point. I am able to link to the dll and get the pointer
> to the entry point and call the function.  The window is drawn but not
> a single widget shows up.
>
> I have tested the dll as a stand alone program by temprerally adding a
> main() function that calls the entry function. As a program it works
> as far as the FLTK side of things, all widgets are drawn and working
> as expected.
>
> I am at a loss why as a dll the widgets are not drawn, any ideas?

Which FLTK version and which build tools are you using? This is
probably important, since the MS tools are known to introduce all
kinds of problems with different compilation / linking / runtime
options. Are you using the dll version of FLTK as well?

As a wild guess, I'd check all compilation and linking options
like /MT /MD etc., because these *are* important if you want to
link your app with a dll (they should be the same). This applies
to MS VC++ of course, using MinGW might have less problems here.

Another question is whether you are using FLTK in both the main
program and the dll. This could make it more complicated, but this
is probably the use case anyway. Sorry, if this is not of much
help, I never tried to do such a dll build.

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

Reply via email to