2de85f84075a1ee37aaf07af0b177c360091e8ff
* contrib/hbw32/dllcall.c
! Fixed some xhb specific code to work in Harbour.
Now the DLL functions started to work.
! Fixed buffer corruption (by 1 byte) when strings were
passed by reference.
+ Added some XBase++-like support to always pass a copy
of our string buffers to the called functions. This is
safer but slower. The support is probably not complete.
Please test.
+ Added some XBase++ compatible #defines.
+ Added CALLDLLTYPED() function where the return value
type can be specified. Untested work in progress,
feel free to modify.
; Now this test code works:
---
hDLL := DllLoad( "pscript.dll" )
cVersion := Space(24)
DllCall( hDll, NIL, "PSGetVersion", @cVersion )
? cVersion
DllUnload( hDLL )
---
; TODO: Add header for these #defines.
Description
Harbour Core — Reference source for Five development
Languages
C
80.3%
xBase
17.8%
Makefile
0.6%
C++
0.4%
Harbour
0.4%
Other
0.3%