Hi! I found possible wrong proto of VarBstrFromDate.
For:
local rTimeCurrent:real8, pTimeCurrent:Pointer
...
invoke VarBstrFromDate, rTimeCurrent, 0, LOCALE_NOUSEROVERRIDE, addr pTimeCurrent
I have had compilation error:
QuoteC:\Masm32\ObjAsm32\Code\Objects\Graph2d.inc(821) : error A2137: too few arguments to INVOKE
C:\Masm32\ObjAsm32\Code\Objects\Graph2d.inc(821) : error A2114: INVOKE argument type mismatch : argument : 1
When I had looked at OleAut32.inc I found that proto declaration of VarBstrFromDate is different from description and has 5 (five) parameters instead of 4 (four).
I changed OleAut32.inc as:
;-VarBstrFromDate PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD ; previous version
VarBstrFromDate PROTO :REAL8,:DWORD,:DWORD,:DWORD ; new version
Best regards,
Konstantin.