2009-02-23 16:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-mkdll.bat
- Removed no longer relevant NOTE. BCC tlib can actually
handle dots in pathname if put between quotes, which
is how it is.
* contrib/gtwvg/gtwvg.h
* contrib/gtwvg/wvggui.h
! Applied former owatcom fix to GTWVG, too. Please retry,
I didn't test it.
! Converted failing declarations to use HB_ID_REF().
! Applied more casting fixes shown by owatcom 1.8.
; Remaining errors and warnings posted on the list.
This commit is contained in:
@@ -8,6 +8,21 @@
|
||||
2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
|
||||
*/
|
||||
|
||||
2009-02-23 16:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
|
||||
* bin/hb-mkdll.bat
|
||||
- Removed no longer relevant NOTE. BCC tlib can actually
|
||||
handle dots in pathname if put between quotes, which
|
||||
is how it is.
|
||||
|
||||
* contrib/gtwvg/gtwvg.h
|
||||
* contrib/gtwvg/wvggui.h
|
||||
! Applied former owatcom fix to GTWVG, too. Please retry,
|
||||
I didn't test it.
|
||||
! Converted failing declarations to use HB_ID_REF().
|
||||
! Applied more casting fixes shown by owatcom 1.8.
|
||||
|
||||
; Remaining errors and warnings posted on the list.
|
||||
|
||||
2009-02-23 15:14 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
|
||||
* bin/postinst.bat
|
||||
! Protected command from pre-NT systems.
|
||||
|
||||
@@ -9,10 +9,8 @@ rem Copyright 2009 Viktor Szakats (harbour.01 syenar.hu)
|
||||
rem See doc/license.txt for licensing terms.
|
||||
rem ---------------------------------------------------------------
|
||||
|
||||
rem NOTE: .prg files have to be built with -n1
|
||||
rem NOTE: .c files have to be built with -DHB_DYNLIB
|
||||
rem NOTE: Borland tlib doesn't work if the source library path
|
||||
rem contains '.' char. (as of version 5.8.2)
|
||||
rem NOTE: .prg files have to be compiled with -n1
|
||||
rem NOTE: .c files have to be compiled with -DHB_DYNLIB
|
||||
|
||||
if not "%OS%" == "Windows_NT" ( echo This script needs Windows NT or newer. && goto END )
|
||||
if "%HB_ARCHITECTURE%" == "" ( echo HB_ARCHITECTURE needs to be set. && goto END )
|
||||
|
||||
@@ -206,7 +206,7 @@ HB_EXTERN_BEGIN
|
||||
|
||||
#endif
|
||||
|
||||
#if defined( __cplusplus ) && ( defined( __BORLANDC__ ) || defined( _MSC_VER ) )
|
||||
#if defined( __cplusplus ) && ( defined( __BORLANDC__ ) || defined( _MSC_VER ) || ( defined(__WATCOMC__) && ( __WATCOMC__ >= 1280 ) ) )
|
||||
# define HB_ID_REF( type, id ) id
|
||||
#else
|
||||
# define HB_ID_REF( type, id ) ( ( type ) &id )
|
||||
|
||||
@@ -206,7 +206,7 @@ HB_EXTERN_BEGIN
|
||||
|
||||
#endif
|
||||
|
||||
#if defined( __cplusplus ) && ( defined( __BORLANDC__ ) || defined( _MSC_VER ) )
|
||||
#if defined( __cplusplus ) && ( defined( __BORLANDC__ ) || defined( _MSC_VER ) || ( defined(__WATCOMC__) && ( __WATCOMC__ >= 1280 ) ) )
|
||||
# define HB_ID_REF( type, id ) id
|
||||
#else
|
||||
# define HB_ID_REF( type, id ) ( ( type ) &id )
|
||||
|
||||
@@ -102,13 +102,13 @@ extern void wvt_Size2ArrayEx( SIZE *siz ,PHB_ITEM aSize );
|
||||
HB_EXTERN_END
|
||||
#endif
|
||||
|
||||
static HANDLE wvg_hInstance( void )
|
||||
static HINSTANCE wvg_hInstance( void )
|
||||
{
|
||||
HANDLE hInstance;
|
||||
|
||||
hb_winmainArgGet( &hInstance, NULL, NULL );
|
||||
|
||||
return hInstance;
|
||||
return ( HINSTANCE ) hInstance;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------//
|
||||
|
||||
@@ -104,13 +104,13 @@
|
||||
|
||||
//----------------------------------------------------------------------//
|
||||
|
||||
static HANDLE wvg_hInstance( void )
|
||||
static HINSTANCE wvg_hInstance( void )
|
||||
{
|
||||
HANDLE hInstance;
|
||||
|
||||
hb_winmainArgGet( &hInstance, NULL, NULL );
|
||||
|
||||
return hInstance;
|
||||
return ( HINSTANCE ) hInstance;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------//
|
||||
@@ -903,7 +903,7 @@ HB_FUNC( WIN_CREATEWINDOWEX )
|
||||
hb_parni( 7 ), hb_parni( 8 ),
|
||||
( HWND ) ( HB_PTRDIFF ) hb_parnint( 9 ),
|
||||
ISNIL( 10 ) ? NULL : ( HMENU ) ( HB_PTRDIFF ) hb_parnint( 10 ),
|
||||
ISNIL( 11 ) ? wvg_hInstance() : ( HINSTANCE ) ( HB_PTRDIFF ) hb_parnint( 11 ),
|
||||
ISNIL( 11 ) ? ( HINSTANCE ) wvg_hInstance() : ( HINSTANCE ) ( HB_PTRDIFF ) hb_parnint( 11 ),
|
||||
NULL );
|
||||
|
||||
HB_TCHAR_FREE( szClassName );
|
||||
@@ -923,7 +923,7 @@ HB_FUNC( WIN_CREATETOOLBAREX )
|
||||
hb_parni( 4 ),
|
||||
ISNIL( 5 ) ? NULL : ( HINSTANCE ) ( HB_PTRDIFF ) hb_parnint( 5 ),
|
||||
ISNIL( 6 ) ? 0 : hb_parnint( 6 ),
|
||||
ISNIL( 7 ) ? NULL : ( HANDLE ) ( HB_PTRDIFF ) hb_parnint( 7 ),
|
||||
ISNIL( 7 ) ? NULL : ( LPCTBBUTTON ) ( HB_PTRDIFF ) hb_parnint( 7 ),
|
||||
hb_parni( 8 ),
|
||||
hb_parni( 9 ),
|
||||
hb_parni( 10 ),
|
||||
@@ -1197,7 +1197,7 @@ static HBITMAP hPrepareBitmap( char * szBitmapX, UINT uiBitmap,
|
||||
szBitmap = HB_TCHAR_CONVTO( szBitmapX );
|
||||
|
||||
hBitmap = ( HBITMAP ) LoadImage(
|
||||
wvg_hInstance(),
|
||||
( HINSTANCE ) wvg_hInstance(),
|
||||
( LPCTSTR ) szBitmap,
|
||||
IMAGE_BITMAP,
|
||||
iExpWidth,
|
||||
@@ -1218,7 +1218,7 @@ static HBITMAP hPrepareBitmap( char * szBitmapX, UINT uiBitmap,
|
||||
hb_snprintf( szResname, sizeof( szResname ), "?%u", uiBitmap );
|
||||
|
||||
hBitmap = ( HBITMAP ) LoadImage(
|
||||
wvg_hInstance(),
|
||||
( HINSTANCE ) wvg_hInstance(),
|
||||
( LPCTSTR ) MAKEINTRESOURCE( ( WORD ) uiBitmap ),
|
||||
IMAGE_BITMAP,
|
||||
iExpWidth,
|
||||
@@ -1619,7 +1619,7 @@ HB_FUNC( WVG_TREEVIEW_ADDITEM )
|
||||
TVIS_OVERLAYMASK | TVIS_STATEIMAGEMASK | TVIS_USERMASK ;
|
||||
|
||||
tvis.item.state = 0; // TVI_BOLD
|
||||
tvis.hParent = ISNIL( 2 ) ? NULL : wvg_parhandle( 2 );
|
||||
tvis.hParent = ISNIL( 2 ) ? NULL : ( HTREEITEM ) wvg_parhandle( 2 );
|
||||
tvis.item.pszText = text;
|
||||
|
||||
hb_retnint( ( HB_PTRDIFF ) TreeView_InsertItem( wvg_parhwnd( 1 ), &tvis ) );
|
||||
@@ -2628,7 +2628,7 @@ HB_FUNC( WVG_REGISTERCLASS_BYNAME )
|
||||
memset( &wndclass, 0, sizeof( WNDCLASS ) );
|
||||
wndclass.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;
|
||||
wndclass.lpfnWndProc = DefWindowProc;
|
||||
wndclass.hInstance = wvg_hInstance();
|
||||
wndclass.hInstance = ( HINSTANCE ) wvg_hInstance();
|
||||
wndclass.hIcon = NULL;
|
||||
wndclass.hCursor = LoadCursor( NULL, IDC_ARROW );
|
||||
wndclass.hbrBackground = NULL;
|
||||
@@ -2927,5 +2927,3 @@ HB_FUNC( WVG_RELEASEWINDOWPROCBLOCK )
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user