Try it again removing PASCAL from the DLL32 declaration
(In FWH DLL32 is no longer needed. Just use DLL ... as we are in 32 bits)
Callejas wrote:DLL32 FUNCTION _hllapi(@F AS LONG, @D AS STRING, @L AS LONG, @R AS LONG) AS LONG PASCAL FROM "hllapi" LIB "PCSHLL32.dll"
DLL32 FUNCTION HLLAPI(@F AS PTR, @D AS STRING, @L AS PTR, @R AS PTR) AS LONG PASCAL FROM "hllapi" LIB "PCSHLL32.dll"