exec_dll_method() definitions

Since Sculptor version 6.2.0

The calling convention (used as first parameter in exec_dll_method()), can be defined as:

CC_C_DEFAULT

CC_C_ELLIPSIS

CC_C_ELLIPSIS_VARARGS

CC_C_X86_CDECL

CC_C_X86_WIN32_STD

CC_C_X86_WIN32_FAST_MS

CC_C_X86_WIN32_FAST_GNU

CC_C_X86_WIN32_THIS_MS

CC_C_X86_WIN32_THIS_GNU

CC_C_X64_WIN64

CC_C_X64_SYSV

CC_C_PPC32_DARWIN

CC_C_PPC32_OSX

CC_C_ARM_ARM_EABI

CC_C_ARM_THUMB_EABI

CC_C_ARM_ARMHF

CC_C_MIPS32_EABI

CC_C_MIPS32_PSPSDK

CC_C_PPC32_SYSV

CC_C_PPC32_LINUX

CC_C_ARM_ARM

CC_C_ARM_THUMB

CC_C_MIPS32_O32

CC_C_MIPS64_N32

CC_C_MIPS64_N64

CC_C_X86_PLAN9

CC_C_SPARC32

CC_C_SPARC64

CC_C_ARM64

CC_C_PPC64

CC_C_PPC64_LINUX

CC_SYS_DEFAULT

CC_SYS_X86_INT80H_LINUX

CC_SYS_X86_INT80H_BSD

CC_SYS_PPC32

CC_SYS_PPC64

See Calling Conventions on dyncall.org for more information.

Note

There is a special rule on Windows 64 bits where only CC_C_DEFAULT and CC_C_ELLIPSIS are supported. When another value is detected it is converted to CC_C_DEFAULT (when executed in a 64 bit Windows). So that any WIN32 calling convention style, will be “compatible” with the 64 bit dll (as this is the only calling convention in 64 bit Windows)


The execution of exec_dll_method() can return one of these values:

EXEC_DLL_OK

The dynamic library method has been correctly executed

EXEC_DLL_ARGS

Arguments error

EXEC_DLL_LOAD

Could not load the dynamic library

EXEC_DLL_PROC

The exported method does not exist

EXEC_DLL_DYN

DynCall error


RELATED TOPICS

exec_dll_method()

The include file sculptor.h