2007-11-25 12:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/contrib/gtwvg/wvtutils.c
    ! changed 'template' used as variable name to 'lpTemplate'
      Some C++ compilers may not accept 'template' as variable name
      because 'template' has special meaning in C++ so please do not
      use such name - thanks to Andi
This commit is contained in:
Przemyslaw Czerpak
2007-11-25 11:24:21 +00:00
parent 67a6e11654
commit d9ecde53a9
2 changed files with 13 additions and 6 deletions

View File

@@ -8,6 +8,13 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2007-11-25 12:24 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/gtwvg/wvtutils.c
! changed 'template' used as variable name to 'lpTemplate'
Some C++ compilers may not accept 'template' as variable name
because 'template' has special meaning in C++ so please do not
use such name - thanks to Andi
2007-11-25 12:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwmain.c
* harbour/source/vm/mainwin.c

View File

@@ -1300,12 +1300,12 @@ HB_FUNC( WVT_CREATEDIALOGDYNAMIC )
{
case 0:
{
LPTSTR template = HB_TCHAR_CONVTO( hb_parc( 1 ) );
LPTSTR lpTemplate = HB_TCHAR_CONVTO( hb_parc( 1 ) );
hDlg = CreateDialog( ( HINSTANCE ) hb_hInstance,
template,
lpTemplate,
hb_parl( 2 ) ? _s->hWnd : NULL,
(DLGPROC) hb_wvt_gtDlgProcMLess );
HB_TCHAR_FREE( template );
HB_TCHAR_FREE( lpTemplate );
}
break;
@@ -1424,13 +1424,13 @@ HB_FUNC( WVT_CREATEDIALOGMODAL )
{
case 0:
{
LPTSTR template = HB_TCHAR_CONVTO( hb_parc( 1 ) );
LPTSTR lpTemplate = HB_TCHAR_CONVTO( hb_parc( 1 ) );
iResult = DialogBoxParam( ( HINSTANCE ) hb_hInstance,
template,
lpTemplate,
hParent,
(DLGPROC) hb_wvt_gtDlgProcModal,
( LPARAM ) ( DWORD ) iIndex+1 );
HB_TCHAR_FREE( template );
HB_TCHAR_FREE( lpTemplate );
}
break;