[fpc-pascal] RES: FreePascal in a FreeBSD

Marco van de Voort marcov at stack.nl
Sat Jan 14 15:35:50 CET 2006


> Thank you very much, Marco! You really helped me a lot.
> 
> Pierre: you can use de BaseUnix.GetEnvironmentVariable almost the same like
> you use Windows.GetEnvironmentVariable in Delphi.

baseunix.fpgetenv it is :-)

baseunix mostly contains Unix calls prefixed with "fp" to avoid unnecessary
nameclashes

> Now I'm looking for correspondents for these Windows APIs in the FreePascal:
>  - LoadLibrary (Linux: dlopen)
>  - FreeLibrary (Linux: dlclose)
>  - GetProcAddress (Linux: dlsym)
> 
> Can somebody help me?

Use unit dynlibs. These calls are abstracted in that unit to work over all
OSes that support such functionality.




More information about the fpc-pascal mailing list