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.
// change path if you like to try this on Windows or Linux
Dim d As New DeclareLibraryMBS("/usr/lib/libz.1.dylib")

Dim 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.

Some examples using this class:

Blog Entries

Release notes

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

DeclareFunctionMBS   -   DelegateCrashExceptionMBS

💬 Ask a question or report a problem
The biggest plugin in space...