[racket] com-get-property Question

From: heraklea at gmx.de (heraklea at gmx.de)
Date: Fri Feb 22 04:43:05 EST 2013

Hello friends,

I have an com object with some methods and properties inter alia:

[propget, id(3), helpstring("property Date")] HRESULT Date([out, retval] DATE *pVal);
[propput, id(3), helpstring("property Date")] HRESULT Date([in] DATE newVal);

in vbs:

Set oObj = CreateObject("Test.date")

res = oObj.ExpireDate

MsgBox res 

I get the result: 21.02.2013

When I make this in Racket:
(define oObj	(com-create-instance "Test.date"))
(com-get-property oObj "Date")

I am getting an error:
VariantTimeToSystemTime: implementation not found; arguments: 41670.0 #<cpointer:SYSTEMTIME>

So my question is do I something wrong in using rackets ffi?


Yours,

Posted on the users mailing list.