form in dll

Started by Rudolf Furstauer, March 12, 2013, 05:01:56 AM

Previous topic - Next topic

Rudolf Furstauer

Hallo Paul,       
     
I've got a small problem:

I try to give a form in a dll.
In one example (Visual_DLL_works.zip) it works, in another example (Visual_DLL_failed.zip) I give
an additional FireImage on the form in the dll and it no longer works.

Thanks for your help!

Best regards,           


Rudolf Fuerstauer 

Paul Squires

Hi Rudolf,

My tests indicate that I have the GDI+ startup code generated in the wrong place for DLL's. I need to move it to the %DLL_PROCESS_ATTACH message within FF_LIBMAIN. I will see if I can change the code generation and then post a new FireFly exe for you to try.
Paul Squires
PlanetSquires Software

Paul Squires

Actually, the problem was that the GDI+ shutdown code would always be called for DLL's therefore the visual control would never show. I added code as follows:

#If Not %Def( %DLL_PROJECT )
    ' Shutdown the GDI+ library
   GdiplusShutdown_FF GDIToken
#EndIf


You can try the new FireFly.exe attached to see if it works okay for you.


[attachment deleted by admin]
Paul Squires
PlanetSquires Software

Rudolf Furstauer

Hi Paul,

many thanks for your help.
Now seems to be working properly!


Rudolf Fürstauer