Platforms to show: All Mac Windows Linux Cross-Platform

DeclareLibraryMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class DynamicDeclares MBS Util Plugin 20.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for a C library loaded into Xojo.
Example
// change path if you like to try this on Windows or Linux
Var d As New DeclareLibraryMBS("/usr/lib/libz.1.dylib")

Var lines() As String = d.SymbolNames
Break // look in list of functions

Allows you to load a DLL on Windows, dylib on MacOS and shared object (so) on Linux and inspect the available functions and load functions by name.

This class has no sub classes.

Blog Entries

Release notes

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS Util Plugin.


DeclareFunctionMBS   -   DelegateCrashExceptionMBS


The biggest plugin in space...