This doesn't work anymore. The program crashes when GetDateFormat() is called.
UPDATED: I find out the problem (known in Blitz): if you pass a NULL pointer, you can't simply pass a '0' , you also need to change the function definition in the .decls file.
For example:
See lpDate* and lpDate% .
UPDATED: I find out the problem (known in Blitz): if you pass a NULL pointer, you can't simply pass a '0' , you also need to change the function definition in the .decls file.
For example:
;.lib "Kernel32.dll" GetDateFormat%(Locale%,dwFlags%,lpDate*,lpFormat$,lpDateStr$,cchDate%):"GetDateFormatA" GetDateFormat_NULL%(Locale%,dwFlags%,lpDate%,lpFormat$,lpDateStr$,cchDate%):"GetDateFormatA"
See lpDate* and lpDate% .