Skip to content

Directly loading a libraryยค

If you are loading a 64-bit library in 64-bit Python (or a 32-bit library in 32-bit Python) then you can directly load the library using the LoadLibrary class.

Attention

See Client-Server if you want to load a 32-bit library in 64-bit Python.

The following examples are included with the msl-loadlib package:

  • C++ — compiled in 32- and 64-bit Windows and Linux and in 64-bit macOS
  • FORTRAN — compiled in 32- and 64-bit Windows and Linux and in 64-bit macOS
  • .NET — complied in 32- and 64-bit using Microsoft Visual Studio 2017
  • Java — platform and bitness independent since it runs in the JVM
  • COM — load a Component Object Model library on Windows
  • ActiveX — illustrates how to load ActiveX controls on Windows
  • Windows __stdcall — a 32-bit library that uses the __stdcall calling convention
  • LabVIEW — built using 32- and 64-bit LabVIEW on Windows