Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
External dll/so
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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Compile on multiple distr...
by
TRon
[
Today
at 02:05:23 am]
Resolving procedure symbo...
by
cdbc
[
Today
at 01:32:54 am]
Select cell in listview
by
dsiders
[
Today
at 12:39:56 am]
UK's Online Safety Act
by
Joanna from IRC
[January 20, 2025, 11:48:15 pm]
Preparing FPC 3.2.4, poin...
by
Fred vS
[January 20, 2025, 11:27:29 pm]
SQL update statement and ...
by
silvercoder70
[January 20, 2025, 10:52:49 pm]
Minor Q: HowTo use 'Debug...
by
d7_2_laz
[January 20, 2025, 10:38:03 pm]
Nested declarations insid...
by
PascalDragon
[January 20, 2025, 10:33:14 pm]
GR32 GR_Bindings problem
by
PascalDragon
[January 20, 2025, 10:31:47 pm]
[Solved] A Tip for beginn...
by
silvercoder70
[January 20, 2025, 10:15:43 pm]
Unit's name collides with...
by
TCH
[January 20, 2025, 09:04:50 pm]
D2Bridge Framework for La...
by
nummer8
[January 20, 2025, 08:20:59 pm]
using TForm.OnPaint to re...
by
robert rozee
[January 20, 2025, 06:14:18 pm]
Drawing difference betwee...
by
Jonny
[January 20, 2025, 05:05:54 pm]
Random ?
by
Thaddy
[January 20, 2025, 04:43:11 pm]
Memory Safety and Object ...
by
Thaddy
[January 20, 2025, 04:19:13 pm]
Spaces are allowed here ?
by
Thaddy
[January 20, 2025, 04:06:29 pm]
Error 403 downloading wit...
by
Thaddy
[January 20, 2025, 03:09:31 pm]
API on intranet - auth im...
by
MarkMLl
[January 20, 2025, 02:17:27 pm]
Making sense of pparser, ...
by
Thaddy
[January 20, 2025, 01:09:44 pm]
مشكلة في التقارير
by
nouzi
[January 20, 2025, 12:47:27 pm]
Artificial intelligence
by
MarkMLl
[January 20, 2025, 12:31:46 pm]
[SOLVED] Treeview flicker...
by
d7_2_laz
[January 20, 2025, 12:13:44 pm]
No access to the wiki
by
dseligo
[January 20, 2025, 12:01:01 pm]
IContainers
by
cdbc
[January 20, 2025, 08:36:34 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: External dll/so (Read 10648 times)
notebook
New Member
Posts: 21
External dll/so
«
on:
August 03, 2011, 07:59:21 am »
How I can add dll/so to main project as reference?
in visual studio you cad add dll as reference, Can I do this in lazarus?
How I can load dll/so dynamically in main project?
Logged
jixian.yang
Full Member
Posts: 173
Re: External dll/so
«
Reply #1 on:
August 03, 2011, 10:57:09 am »
In Lazarus, we can put {$MODE DELPHI} in the unit which calls the dlls, then it is the same way as in Delphi.
The demo projects for Delphi is quite easy to Google.
«
Last Edit: August 03, 2011, 11:29:00 am by jixian.yang
»
Logged
felipemdc
Administrator
Hero Member
Posts: 3538
Re: External dll/so
«
Reply #2 on:
August 03, 2011, 11:09:50 am »
In Lazarus you don't need to add a reference to the library in the project itself, you simply add code which binds to the library.
Here is documentation about how to dynamically load a dynamic library:
http://wiki.lazarus.freepascal.org/Lazarus/FPC_Libraries#Loadlibrary_-_loading_a_dynamic_library
And about how to statically load a dynamic library:
http://wiki.lazarus.freepascal.org/Lazarus/FPC_Libraries#External_-_statically_loading_a_dynamic_library
Logged
jixian.yang
Full Member
Posts: 173
Re: External dll/so
«
Reply #3 on:
August 03, 2011, 11:30:24 am »
Thanks.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
External dll/so
TinyPortal
© 2005-2018