You'll need to add a few explicit casts, like this: hOldPen = SelectObject( hDC, (HPEN) hPen ); => hOldPen = ( HPEN ) SelectObject( hDC, (HPEN) hPen );
Brgds, Viktor On Thu, Mar 5, 2009 at 9:30 PM, Kleyber Derick <[email protected]>wrote: > Hi Viktor, > > Here is the description from MSDN: > > Error Message 'conversion' : cannot convert from 'type1' to 'type2' > > The compiler cannot cast from '*type1*' to '*type2*'. > > And the exact error here is: > > error C2440: '=' cannot convert from 'HGDIOBJ' to 'HPEN' > > error C2440: '=' cannot convert from 'HGDIOBJ' to 'HBRUSH' > > Thanks for your help. > > Kleyber Derick > > _______________________________________________ > 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
