Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
How to put a Form into a .dll file?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lightweight HTML/CSS rend...
by
Wallaby
[
Today
at 03:47:09 am]
[AGGPas] Difference betwe...
by
Graeme
[
Today
at 02:29:45 am]
Debian releases a Gtk3 La...
by
dsiders
[
Today
at 01:07:16 am]
[SOLVED] GTK3 : Icons hav...
by
theo
[March 16, 2026, 11:29:43 pm]
Getting results from sql ...
by
CraigC
[March 16, 2026, 10:00:24 pm]
add thumb up or like butt...
by
Martin_fr
[March 16, 2026, 09:35:13 pm]
Problem with drawing orde...
by
wp
[March 16, 2026, 06:26:27 pm]
TChart: Wrong default val...
by
wp
[March 16, 2026, 06:22:26 pm]
Hello! Anything new?
by
simone
[March 16, 2026, 05:47:57 pm]
LAMW Foreground service -...
by
Mongkey
[March 16, 2026, 05:40:05 pm]
could Ardour's YTK be use...
by
Fred vS
[March 16, 2026, 04:59:52 pm]
Any way to "embed" Window...
by
myisjwj
[March 16, 2026, 02:50:41 pm]
mORMot again (HttpServer/...
by
ttomas
[March 16, 2026, 12:45:49 pm]
Is it me or is there some...
by
Martin_fr
[March 16, 2026, 11:48:04 am]
Exiting HeapTrace dump
by
jamie
[March 16, 2026, 11:34:49 am]
CONCAT formula
by
Zvoni
[March 16, 2026, 08:17:21 am]
emuloader: help to resurr...
by
arcadegamer
[March 15, 2026, 08:30:31 pm]
AutoSize TMemo.Height?
by
wp
[March 15, 2026, 05:55:05 pm]
Initialization & finaliza...
by
Martin_fr
[March 15, 2026, 05:24:36 pm]
Possible Enhancement to t...
by
jamie
[March 15, 2026, 04:10:38 pm]
lazarus 4.99 and missing ...
by
wp
[March 15, 2026, 03:11:43 pm]
Questions about TFuncSeri...
by
hedgehog
[March 15, 2026, 06:58:29 am]
CryptoLib4Pascal
by
Xor-el
[March 14, 2026, 06:17:32 pm]
Extended Module Player
by
Gigatron
[March 14, 2026, 05:32:06 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to put a Form into a .dll file? (Read 8274 times)
halflifezy
Jr. Member
Posts: 61
How to put a Form into a .dll file?
«
on:
June 13, 2011, 04:17:38 pm »
How to put a Form into a .dll file?
I new a form into a .dll project.
when compile it show that "Unit1.pas(8,22) Fatal: Can't find unit FileUtil used by Unit1"
how to solve?
thank you.
«
Last Edit: June 17, 2011, 04:58:25 am by halflifezy
»
Logged
Leledumbo
Hero Member
Posts: 8835
Programming + Glam Metal + Tae Kwon Do = Me
Re: How to put a Form into a .dll file?
«
Reply #1 on:
June 13, 2011, 05:55:11 pm »
Add LCL to your project dependencies. I didn't really remember the last state whether having forms in dll already works or not yet, please try yourself.
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
halflifezy
Jr. Member
Posts: 61
Re: How to put a Form into a .dll file?
«
Reply #2 on:
June 15, 2011, 10:50:11 am »
How to add LCL?
Logged
Leledumbo
Hero Member
Posts: 8835
Programming + Glam Metal + Tae Kwon Do = Me
Re: How to put a Form into a .dll file?
«
Reply #3 on:
June 15, 2011, 05:49:23 pm »
Project->Project Inspector->New Requirement->Choose LCL from the dropdown.
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
halflifezy
Jr. Member
Posts: 61
Re: How to put a Form into a .dll file?
«
Reply #4 on:
June 16, 2011, 12:05:01 pm »
still not solve.
it show error: project1.lpr(12,1) Error: Undefined symbol: WSRegisterCustomImageList
errors like this more than 50.
Logged
Martin_fr
Administrator
Hero Member
Posts: 12209
Debugger - SynEdit - and more
Re: How to put a Form into a .dll file?
«
Reply #5 on:
June 16, 2011, 12:13:20 pm »
Code:
[Select]
uses Interfaces;
Interfaces must be in uses section. (put it in your main pas file, the one that starts with "library" or "program")
Please also read
http://bugs.freepascal.org/view.php?id=7182
«
Last Edit: June 16, 2011, 12:16:27 pm by Martin_fr
»
Logged
Ide Tools, Code completion and more
/
IDE cool features
/
Debugger Status
halflifezy
Jr. Member
Posts: 61
Re: How to put a Form into a .dll file?
«
Reply #6 on:
June 16, 2011, 12:14:22 pm »
errors is below
Logged
Leledumbo
Hero Member
Posts: 8835
Programming + Glam Metal + Tae Kwon Do = Me
Re: How to put a Form into a .dll file?
«
Reply #7 on:
June 16, 2011, 06:40:03 pm »
Exactly like Martin said, you must have Interfaces in the uses section of the library.
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
halflifezy
Jr. Member
Posts: 61
Re: How to put a Form into a .dll file?
«
Reply #8 on:
June 17, 2011, 04:50:14 am »
thank you very much.
after add interfaces compile pass.
but run .exe file when call function
it paused immediately.
function as below:
procedure showform();
begin
form2:=TForm1.Create(nil);
form2.Show;
end;
«
Last Edit: June 17, 2011, 05:00:52 am by halflifezy
»
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
How to put a Form into a .dll file?
TinyPortal
© 2005-2018