Hi Viktor,
found the problem: is -TP flag used in config/win/msvc.cf at line 15.
I have removed it changing from
CPPFLAGS = -nologo -W4 -wd4127 -Gs -I. -I$(HB_INC_COMPILE) -TP
to
CPPFLAGS = -nologo -W4 -wd4127 -Gs -I. -I$(HB_INC_COMPILE)
and now ole works again with msvc.
Now I'm testing other parts because actually I did only a test using
contrib/hbwin/tests/testole.prg
contrib/hbole/tests/testole.prg
Both didn't work before and now both work again.
Surely this has to be checked, probably disabling c++ compilation for
those folder only, but I suspect (but it is only a thought) that the
problem resides in other part.
There are also a lot of warnings inside build log file about some wrong
conversions, like (sorry if they are in Italian, but the warning should
be clear):
../../expropt2.c(557) : warning C4244: '=': conversione da 'HB_LONG' a
'LONG'. Possibile perdita di dati.
../../expropt2.c(559) : warning C4244: '=': conversione da 'HB_LONG' a
'LONG'. Possibile perdita di dati.
../../expropt2.c(569) : warning C4244: 'funzione': conversione da
'HB_LONG' a 'LONG'. Possibile perdita di dati.
../../expropt2.c(760) : warning C4244: '=': conversione da 'HB_LONG' a
'LONG'. Possibile perdita di dati.
../../expropt2.c(762) : warning C4244: '=': conversione da 'HB_LONG' a
'LONG'. Possibile perdita di dati.
../../expropt2.c(772) : warning C4244: 'funzione': conversione da
'HB_LONG' a 'LONG'. Possibile perdita di dati.
../../expropt2.c(813) : warning C4244: '=': conversione da 'HB_LONG' a
'LONG'. Possibile perdita di dati.
../../expropt2.c(815) : warning C4244: '=': conversione da 'HB_LONG' a
'LONG'. Possibile perdita di dati.
../../expropt2.c(825) : warning C4244: 'funzione': conversione da
'HB_LONG' a 'LONG'. Possibile perdita di dati.
harboury.c(4143) : warning C4244: '=': conversione da 'int' a
'yytype_int16'. Possibile perdita di dati.
harbour.y(571) : warning C4244: 'funzione': conversione da 'HB_LONG' a
'LONG'. Possibile perdita di dati.
../../gencc.c(656) : warning C4244: '=': conversione da 'size_t' a
'USHORT'. Possibile perdita di dati.
../../gencc.c(808) : warning C4244: '=': conversione da 'size_t' a
'USHORT'. Possibile perdita di dati.
../../gencc.c(1558) : warning C4244: '=': conversione da 'size_t' a
'USHORT'. Possibile perdita di dati.
../../complex.c(365) : warning C4244: '=': conversione da 'HB_LONG' a
'LONG'. Possibile perdita di dati.
../../complex.c(416) : warning C4244: 'funzione': conversione da
'HB_LONG' a 'int'. Possibile perdita di dati.
../../complex.c(416) : warning C4244: 'funzione': conversione da
'HB_LONG' a 'int'. Possibile perdita di dati.
../../complex.c(416) : warning C4244: 'funzione': conversione da
'HB_LONG' a 'int'. Possibile perdita di dati.
../../hbmain.c(298) : warning C4244: '=': conversione da 'int' a
'USHORT'. Possibile perdita di dati.
../../hbmain.c(3518) : warning C4244: '+=': conversione da 'size_t' a
'USHORT'. Possibile perdita di dati.
.....
Best regards,
Francesco
PS: I will test also you patch ASAP to see if it also solves the problem.
Il 23/03/2009 12.30, Viktor Szakáts ha scritto:
Thank you very much.
I've attached a small patch to convert some parameters to ptr type,
but it probably won't solve the problem by itself.
Whole OLE code is very flakey, I hope Mindaugas can send us
something before we release.
BTW, new xhb whatsnew advertised that they had an OLE update
which eliminated internals from the code. Unfortunately this change
isn't published in their CVS anymore.
Brgds,
Viktor
On Mon, Mar 23, 2009 at 12:15 PM, Francesco Saverio Giudice
<[email protected] <mailto:[email protected]>> wrote:
Hi Viktor,
Il 23/03/2009 10.36, Viktor Szakáts ha scritto:
Hi Francesco, could easily be my MinGW64 changes broke it.
I will check.
Best regards,
Francesco
_______________________________________________
Harbour mailing list
[email protected] <mailto:[email protected]>
http://lists.harbour-project.org/mailman/listinfo/harbour
------------------------------------------------------------------------
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour