|
From: Maurizio la C. <m.l...@gm...> - 2014-12-21 13:22:23
|
Again about the warnings related to hb_vmPushState( )/ hb_vmPopState( )...
I'm building HwGUI using Harbour 3.2.0dev and I did find this changelog
entry:
------------------------------------------------------------------------
2010-02-03 19:08 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbvm.h
* harbour/src/vm/hvm.c
* covered hb_vmPushState() and hb_vmPopState() functions by
HB_LEGACY_LEVEL3 macro. These functions are depreciated,
hb_vmRequestReenter()/hb_vmRequestRestore() should be used
instead.
------------------------------------------------------------------------
2011-07-17 16:21 UTC+0200 Viktor Szakats (vszakats.net/harbour)
... omitted
; hb_vmPushState()/hb_vmPopState() APIs were now permanently deleted.
... omitted
------------------------------------------------------------------------
Alexander, what do you think about to substitute this calls with updated
ones?
BR
Maurizio
Il 21/12/2014 13:57, Maurizio la Cecilia ha scritto:
> Hi!
> After last commit I confirm that the library is built.
> Anyway, the warnings above are still present:
>
> ../../../../contrib/activex/c_activex.c: In function
> 'HB_FUN_HWG_CREATEACTIVEX':
> ../../../../contrib/activex/c_activex.c:81:4: warning: implicit
> declaration of function 'ISNIL' [-Wi
> mplicit-function-declaration]
> hWndCtrl = CreateWindowEx( ( DWORD ) ISNIL( 1 ) ? 0 : hb_parni( 1
> ), // nExStyle
> ^
> ../../../../contrib/activex/c_activex.c: In function 'Invoke':
> ../../../../contrib/activex/c_activex.c:391:10: warning: implicit
> declaration of function 'hb_vmPush
> State' [-Wimplicit-function-declaration]
> hb_vmPushState( );
> ^
> ../../../../contrib/activex/c_activex.c:509:10: warning: implicit
> declaration of function 'hb_vmPopS
> tate' [-Wimplicit-function-declaration]
> hb_vmPopState( );
> ^
>
> BR
> Maurizio
>
>
> Il 20/12/2014 22:33, Itamar M. Lins Jr. Lins ha scritto:
>> Hi!
>> Please enable compiling activex with Mingw.
>> We mingw users can not use it.
>>
>> The file hbactivex.hbp
>> #
>> # $Id: hbactivex.hbp 1615 2011-02-18 13:53:35Z mlacecilia $
>> #
>>
>> -inc
>>
>> -hblib
>> -o../lib/hbactivex
>>
>> -n -q0 -w -es2
>>
>> -i../include
>>
>> -cflag=-DHWG_USE_POINTER_ITEM
>>
>> activex/*.c
>> activex/*.prg
>>
>> -stop{allmingw}
>>
>> I comment the line #-stop{allmingw}
>> And get many errors.
>>
>> C:\devl\hwgui\contrib>hbmk2 hbactivex.hbp
>> hbmk2: Harbour: Compilando m├│dulos...
>> hbmk2: Compilando...
>> ../../../../contrib/activex/c_activex.c: In function
>> 'HB_FUN_HWG_CREATEACTIVEX':
>>
>> ../../../../contrib/activex/c_activex.c:81:4: warning: implicit
>> declaration of f
>> unction 'ISNIL' [-Wimplicit-function-declaration]
>> hWndCtrl = CreateWindowEx( ( DWORD ) ISNIL( 1 ) ? 0 : hb_parni( 1
>> ), // nExS
>> tyle
>> ^
>> ../../../../contrib/activex/c_activex.c: In function 'Invoke':
>> ../../../../contrib/activex/c_activex.c:391:10: warning: implicit
>> declaration of
>> function 'hb_vmPushState' [-Wimplicit-function-declaration]
>> hb_vmPushState( );
>> ^
>> ../../../../contrib/activex/c_activex.c:509:10: warning: implicit
>> declaration of
>> function 'hb_vmPopState' [-Wimplicit-function-declaration]
>> hb_vmPopState( );
>> ^
>> ../../../../contrib/activex/htmlcore.c: In function 'Dispatch_AddRef':
>> ../../../../contrib/activex/htmlcore.c:1386:13: warning: pointer
>> targets in pass
>> ing argument 1 of 'InterlockedIncrement' differ in signedness
>> [-Wpointer-sign]
>> return ( InterlockedIncrement( &( ( _IDispatchEx * ) This
>> )->refCount ) );
>> ^
>> In file included from
>> C:/QT/Qt5.4.0/Tools/mingw491_32/i686-w64-mingw32/include/w
>> inbase.h:22:0,
>> from
>> C:/QT/Qt5.4.0/Tools/mingw491_32/i686-w64-mingw32/include/w
>> indows.h:70,
>> from ../../../../contrib/activex/htmlcore.c:38:
>> C:/QT/Qt5.4.0/Tools/mingw491_32/i686-w64-mingw32/include/interlockedapi.h:29:37:
>> note: expected 'volatile LONG *' but argument is of type 'DWORD *'
>> __MINGW_INTRIN_INLINE LONG WINAPI InterlockedIncrement(LONG
>> volatile *lpAdden
>> d) {
>> ^
>> ../../../../contrib/activex/htmlcore.c: In function 'Dispatch_Release':
>> ../../../../contrib/activex/htmlcore.c:1391:8: warning: pointer
>> targets in passi
>> ng argument 1 of 'InterlockedDecrement' differ in signedness
>> [-Wpointer-sign]
>> if( InterlockedDecrement( &( ( _IDispatchEx * ) This )->refCount
>> ) == 0 )
>> ^
>> In file included from
>> C:/QT/Qt5.4.0/Tools/mingw491_32/i686-w64-mingw32/include/w
>> inbase.h:22:0,
>> from
>> C:/QT/Qt5.4.0/Tools/mingw491_32/i686-w64-mingw32/include/w
>> indows.h:70,
>> from ../../../../contrib/activex/htmlcore.c:38:
>> C:/QT/Qt5.4.0/Tools/mingw491_32/i686-w64-mingw32/include/interlockedapi.h:32:37:
>> note: expected 'volatile LONG *' but argument is of type 'DWORD *'
>> __MINGW_INTRIN_INLINE LONG WINAPI InterlockedDecrement(LONG
>> volatile *lpAdden
>> d) {
>> ^
>> ../../../../contrib/activex/htmlcore.c: In function
>> 'CreateWebEvtHandler':
>> ../../../../contrib/activex/htmlcore.c:1674:18: warning: passing
>> argument 4 of '
>> htmlWindow3->lpVtbl->attachEvent' from incompatible pointer type
>> if( !htmlWindow3->lpVtbl->attachEvent( htmlWindow3,
>> ^
>> ../../../../contrib/activex/htmlcore.c:1674:18: note: expected
>> 'VARIANT_BOOL *'
>> but argument is of type 'struct VARIANT *'
>> ../../../../contrib/activex/htmlcore.c:1712:11: warning: label 'bad'
>> defined but
>> not used [-Wunused-label]
>> bad:htmlWindow3->lpVtbl->Release( htmlWindow3 );
>> ^
>> ../../../../contrib/activex/htmlcore.c: In function 'GetWebPtrs':
>> ../../../../contrib/activex/htmlcore.c:1845:67: error: lvalue
>> required as left o
>> perand of assignment
>> *htmlDoc2Result = ( struct IHTMLDocument2 * ) lpDispatch = 0;
>> ^
>> ../../../../contrib/activex/htmlcore.c: In function 'GetWebElement':
>> ../../../../contrib/activex/htmlcore.c:1991:41: error: lvalue
>> required as left o
>> perand of assignment
>> lpDispatch = ( LPDISPATCH ) htmlElem = 0;
>> ^
>> hbmk2 [hbactivex]: Erro: Executando o compilador C/C++ - tarefa #2. 1
>> gcc.exe -c -O3 -DHWG_USE_POINTER_ITEM -W -Wall -m32 -pipe
>> -IC:/HB34/include -I.
>> ./../../../include ../../../../contrib/activex/htmlcore.c
>> ../../../../contrib/ac
>> tivex/htmlfunc.c
>>
>> best regards,
>> Itamar M. Lins Jr.
>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>
>>
>> _______________________________________________
>> Hwgui-developers mailing list
>> Hwg...@li...
>> https://lists.sourceforge.net/lists/listinfo/hwgui-developers
>
|