How can I apply Delphi XE2 skins to forms in a DLL?
问题 Using Delphi XE2, you have the option to embed custom styles (skins) to a VCL project. Everything works fine. Now I have some forms into a separated dll that I show dynamically. Of course those are not skinned. How can I rectify that? I guess I must do some call to TVisualStyle somehow, but no luck. The host: procedure TForm1.Button1Click(Sender: TObject); var l: THandle; p: procedure (const h: THandle); stdcall; begin l:= LoadLibrary('project1.dll'); if l > 0 then begin @p:= GetProcAddress(l