use of LCL within a Windows DLL lazarus / 31-LCL ---------------------------------------------------------------------- paulherber · 2014-03-21 06:41 Hi all, I'm in the process of converting a MS Office Visio addon from Delphi to Lazarus. This addon consists of an exe and a dll (but renamed to .vsl for use with Visio). This is 32-bit only at the moment. Lazarus 1.2. The exe is working 100%. The dll is almost there, code runs fine, I can display built-in dialog boxes e.g MessageDlg() works fine, but ... none of my custom dialogs will display. If the dialog has the Visible property to true then the code crashes at the .Create() call. If .Visible is false then no crash occurs but there is never any display (natch), code execution goes straight through the Show or ShowModal. Any ideas? MTIA. ---------------------------------------------------------------------- Leledumbo · 2014-03-21 09:45 Does your dll call Application.Initialize before calling any LCL functionality? ---------------------------------------------------------------------- paulherber · 2014-03-21 10:27 Hero indeed. I've added a Forms.Application.Initialize; Many, many thanks.