- Code: Select all Expand view RUN
- #pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( ROUNDBOX )
{
HDC hDC = ( HDC ) hb_parni( 1 );
HBRUSH hBrush = ( HBRUSH ) GetStockObject( 5 );
HBRUSH hOldBrush = ( HBRUSH ) SelectObject( hDC, hBrush );
HPEN hPen, hOldPen ;
if( hb_pcount() > 8 )
hPen = CreatePen( PS_SOLID, hb_parnl( 9 ), ( COLORREF ) hb_parnl( 8 ) );
else
hPen = CreatePen( PS_SOLID, 1, ( COLORREF ) hb_parnl( 8 ) );
hOldPen = ( HPEN ) SelectObject( hDC, hPen );
hb_retl( RoundRect( hDC ,
hb_parni( 2 ),
hb_parni( 3 ),
hb_parni( 4 ),
hb_parni( 5 ),
hb_parni( 6 ),
hb_parni( 7 ) ) );
SelectObject( hDC, hOldBrush );
DeleteObject( hBrush );
SelectObject( hDC, hOldPen );
DeleteObject( hPen );
}
#pragma ENDDUMP
errors
- Code: Select all Expand view RUN
- Lines 287, Functions/Procedures 7, pCodes 1218
[1]:Bcc32.Exe -M -c -v -DHB_OS_WIN_32 -DHB_FM_STATISTICS_OFF -DHB_NO_DEFAULT_API_MACROS -DHB_NO_DEFAULT_STACK_MACROS -IC:\WORK\fwh\include -IC:\work\bcc7\Include;C:\work\XHARBOUR\Include -nObj Obj\Ut_brw_old.c
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
Obj\Ut_brw_old.c:
Error E2209 Lib\\xbrowse\\Ut_brw_old.prg 290: Unable to open include file 'windows.h'
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 295: Undefined symbol 'HDC' in function HB_FUN_ROUNDBOX
Error E2379 Lib\\xbrowse\\Ut_brw_old.prg 295: Statement missing ; in function HB_FUN_ROUNDBOX
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 296: Undefined symbol 'HBRUSH' in function HB_FUN_ROUNDBOX
Error E2379 Lib\\xbrowse\\Ut_brw_old.prg 296: Statement missing ; in function HB_FUN_ROUNDBOX
Error E2379 Lib\\xbrowse\\Ut_brw_old.prg 297: Statement missing ; in function HB_FUN_ROUNDBOX
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 298: Undefined symbol 'HPEN' in function HB_FUN_ROUNDBOX
Error E2379 Lib\\xbrowse\\Ut_brw_old.prg 298: Statement missing ; in function HB_FUN_ROUNDBOX
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 301: Undefined symbol 'hPen' in function HB_FUN_ROUNDBOX
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 301: Undefined symbol 'PS_SOLID' in function HB_FUN_ROUNDBOX
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 301: Undefined symbol 'COLORREF' in function HB_FUN_ROUNDBOX
Error E2121 Lib\\xbrowse\\Ut_brw_old.prg 301: Function call missing ) in function HB_FUN_ROUNDBOX
Error E2121 Lib\\xbrowse\\Ut_brw_old.prg 303: Function call missing ) in function HB_FUN_ROUNDBOX
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 305: Undefined symbol 'hOldPen' in function HB_FUN_ROUNDBOX
Error E2379 Lib\\xbrowse\\Ut_brw_old.prg 305: Statement missing ; in function HB_FUN_ROUNDBOX
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 312: Undefined symbol 'hDC' in function HB_FUN_ROUNDBOX
Warning W8065 Lib\\xbrowse\\Ut_brw_old.prg 312: Call to function 'RoundRect' with no prototype in function HB_FUN_ROUNDBOX
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 314: Undefined symbol 'hOldBrush' in function HB_FUN_ROUNDBOX
Warning W8065 Lib\\xbrowse\\Ut_brw_old.prg 314: Call to function 'SelectObject' with no prototype in function HB_FUN_ROUNDBOX
Error E2451 Lib\\xbrowse\\Ut_brw_old.prg 315: Undefined symbol 'hBrush' in function HB_FUN_ROUNDBOX
Warning W8065 Lib\\xbrowse\\Ut_brw_old.prg 315: Call to function 'DeleteObject' with no prototype in function HB_FUN_ROUNDBOX
Warning W8065 Lib\\xbrowse\\Ut_brw_old.prg 316: Call to function 'SelectObject' with no prototype in function HB_FUN_ROUNDBOX
Warning W8065 Lib\\xbrowse\\Ut_brw_old.prg 317: Call to function 'DeleteObject' with no prototype in function HB_FUN_ROUNDBOX
*** 18 errors in Compile ***