I
I
Interface2015-02-05 20:46:44
Delphi
Interface, 2015-02-05 20:46:44

Delphi is it possible to put a GUI in a dll?

Is it possible to put a form made in Delphi (or even better Lazarus) into a DLL?
Those. for example, the form1.dll library from which you can call something like Form1.Show(); etc.
I am also interested in options where non-VCL components (LCL) are used, I understand that now, probably, Qt can come to mind .. if you have a good book on its use in delphi or wxWidgets or their analogues, I will be glad. But I need something more compact or something. Since it is planned to use only a couple of components in this library (in which I am going to put the form).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2015-02-05
@xmoonlight

easy, you can even shove the exe file into a DLL

K
kras_ai, 2015-02-07
@kras_ai

You can, for this you need to:
1) Create a dynamic library project and place the necessary forms in it;
2) Design an interface (or several) of your library, whose methods will allow you to perform "something like Form1.Show ()";
3) Write a class that implements the above interface;
4) Write an exporting function, which actually returns the library interface.
Just in case: Keep in mind that using the form in the dll you drag the entire VCL with you, maybe the task statement itself is not correct?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question