ComponentRef

Z External Library

ZExternalLibrary

Access component to call external .DLL libraries.

Properties

ModuleName

Example: bass.dll

CallingConvention

The calling-convention used by the dll/shared object library.

  • Stdcall
  • Cdecl

Source

Initialize library functions. See example project ModPlay in Projects folder.

Here is a short list on how to convert parameter types between a dll and ZGE:

  • int,word,longword,byte,bool : int
  • float : float
  • LPCTSTR : string
  • QWORD,INT64 : define two int-parameters
  • STRUCTS and others - not available

BeforeInitExp

This expressions runs before the ZExternalLibrary loads so you can set ModuleName here based on the ANDROID constant. See the OpenGL component in the library for an example:

if(ANDROID)
  this.ModuleName="libGLESv1_CM.so";

Green Marinee theme adapted by David Gilbert, powered by PmWiki