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
How do you maintain your ...
by
Martin_fr
[
Today
at 12:21:29 pm]
UK's Online Safety Act
by
MarkMLl
[
Today
at 12:11:18 pm]
Select cell in listview /...
by
morknot
[
Today
at 11:33:17 am]
How C++ class multiple in...
by
alpine
[
Today
at 11:27:04 am]
Permuted index for RTL an...
by
MarkMLl
[
Today
at 11:17:37 am]
BGRA Controls
by
circular
[
Today
at 11:10:43 am]
Generating a wrapper for ...
by
MarkMLl
[
Today
at 11:02:42 am]
Generic function speciali...
by
Laurent92
[
Today
at 10:33:25 am]
[Solved] SQL update state...
by
folkeu08
[
Today
at 10:10:59 am]
Loading TIFF Files in Bgr...
by
circular
[
Today
at 10:02:18 am]
FPReport: how to load ima...
by
apeoperaio
[
Today
at 09:43:43 am]
What are the most impress...
by
Okoba
[
Today
at 09:32:23 am]
Status of GLScene for Laz...
by
silvercoder70
[
Today
at 08:51:42 am]
My first "tool" written w...
by
Wesbat
[
Today
at 08:36:29 am]
Lazarus Release Candidate...
by
zeljko
[
Today
at 08:13:39 am]
TCalendar View disconnect...
by
TRon
[
Today
at 06:25:54 am]
Compile on multiple distr...
by
Handoko
[
Today
at 03:17:29 am]
Preparing FPC 3.2.4, poin...
by
Fred vS
[
Today
at 03:16:53 am]
Memory Safety and Object ...
by
440bx
[
Today
at 03:06:08 am]
Resolving procedure symbo...
by
TRon
[
Today
at 01:33:03 am]
Run ffmpeg via TProcess
by
TRon
[
Today
at 01:07:59 am]
Minor Q: HowTo use 'Debug...
by
Martin_fr
[January 21, 2025, 11:41:36 pm]
Time & Billing Accounting...
by
silvercoder70
[January 21, 2025, 11:17:33 pm]
D2Bridge Framework for La...
by
nummer8
[January 21, 2025, 09:38:44 pm]
IContainers
by
cdbc
[January 21, 2025, 07:28:18 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: External dll/so (Read 10661 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