On Mon, 23 Mar 2009, Francesco Saverio Giudice wrote:
Hi,
> tested also after
> 2009-03-23 21:42 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
> * harbour/contrib/hbodbc/odbc.c
> * harbour/contrib/hbtpathy/tpwin.c
> * harbour/contrib/hbwin/win_ole.c
> * harbour/contrib/hbwin/win_regc.c
> ! casting
> but the -TP problem is still there.
> Przemek, do you have any idea ?
No. It was not even my intetion to make any fixes. I just simply
corrected casting to pacify MinGW build warnings. Nothing more.
This whole code is waiting for someone who will rewrite it from
scratch. There are many things inside which has been never working
correctly. It's also not MT safe and should not be used in MT
programs.
I hope that some windows developers will work on it.
Sorry but I do not know anything about OLE and using it. I do not
even use Windows so I cannot easy make basic tests.
BTW does this code work with current BCC and MinGW builds?
Is this problem local to MSVS?
Does anyone test it with OpenWatcom?
best regards,
Przemek
ps. I see that you added:
hb_itemPutTD( pItem, pVariant->n1.n2.n3.dblVal + ( double ) 2415019 );
to store VT_DATE values. It means that all VT_DATE values read from OLE
structure will be converted to Harbour timestamp items.
Is it intentional?
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour