Hello

Vailton Renato wrote:
> 
> I have obtained the following error when compiling the Harbour (latest
> versions) with MinGW:
> 
> ../../wvgwin.c: In function `HB_FUN_WVG_SETCURRENTBRUSH':
> ../../wvgwin.c:2095: warning: implicit declaration of function
> `SetClassLongPtr'
> 
> ../../wvgwin.c:2095: error: `GCLP_HBRBACKGROUND' undeclared (first use in
> this f
> unction)
> 
> I'm having to edit the file c:\harbor\contrib\gtwvg\wvgwin.ce and
> remove the constant GCLP_HBRBACKGROUND and put the value -10 as
> defined into c:\harbor\contrib\examples\hbwhat\winuser.ch
> 
> I'm just reporting it may be that someone else has had this problem.
> 

Is the complete function reads like this ?

HB_FUNC( WVG_SETCURRENTBRUSH )
{
#if ! defined( HB_OS_WIN_CE )
#if (defined(_MSC_VER) && (_MSC_VER <= 1200 || defined(HB_OS_WIN_CE)) ||
defined(__DMC__)) && !defined(HB_ARCH_64BIT)
   SetClassLong( wvg_parhwnd( 1 ), GCL_HBRBACKGROUND, ( DWORD ) hb_parnint(
2 ) );
#else
   SetClassLongPtr( wvg_parhwnd( 1 ), GCLP_HBRBACKGROUND, ( LONG_PTR )
hb_parnint( 2 ) );
#endif
#endif
}

If yes, then probably you have issue with your script. Code compiles 
and works fine on all flavours of MinGW.

Regards
Pritpal Bedi

-- 
View this message in context: 
http://www.nabble.com/gtwvg-x-mingw-issue-tp23296896p23297194.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to