swt.ole.win32: Variant to java.util.Date [message #449074] |
Mon, 17 January 2005 18:43  |
Eclipse User |
|
|
|
Hi there,
I'm trying to wrap the Active-X Control "DatePicker" (ProgID =
MSComCtl2.DTPicker)with the swt.ole.win32 - classes and I'm wondering how
to interprete the property "Value" (IDispatch-ID 20)of said control, which
should give back a Date. Here's what I'm doing:
int[] rgdispid = automation.getIDsOfNames(new String[]{"Value"});
int dispIdMember = rgdispid[0];
Variant result = automation.getProperty(dispIdMember);
Calling e.g. the result.getString() or result.getInt() for the Date
2005-01-18 creates "38370"
Does anybody know a way to convert the result into a java.util.Date?
Cheers,
Boris
|
|
|
|
Powered by
FUDForum. Page generated in 0.33330 seconds