User Tools

Site Tools


dll_function_changes

This is an old revision of the document!


_dll function changes

In VO, the following _dll declaration is correct: [code visualfoxpro]_DLL function zLibCompress( ptrDest as ptr, nBytesOut ref long, ptrSource as ptr, nBytesIn as long ) as int:zlib.compress[/code]

This function has the C calling convention (comes from the Linux/Unix world), and therefore the pascal calling convention is not specified.

In X# this declaration does not compile, you have to add the strict calling convention [code visualfoxpro]_DLL function zLibCompress( ptrDest as ptr, nBytesOut ref long, ptrSource as ptr, nBytesIn as long ) as int strict:zlib.compress[/code]

dll_function_changes.1536000492.txt.gz · Last modified: 2018/09/03 18:48 by wolfgangriedmann