I would like to get a month name with the function VarMonthName (oleaut32.dll) but this code doesn't work:

szMonth byte 10 dup(0)
    invoke VarMonthName, 1, 0, 0, addr szMonth
end start
The function doesn't return any error but doesn't work properly. What must I do? The fourth parameter must be BSTR type. How to convtert LPSTR to BSTR?
Posted on 2001-06-13 01:12:00 by vkim