Recent Changes - Search:

ZGameEditor

Documentation

Community

Edit sidebar

ZExternalLibrary

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";
Edit - History - Print - Recent Changes - Search
Page last modified on April 03, 2013, at 12:51 pm