#pragma BEGINDUMP
#include <windows.h>
void hb_errInternal( int i1, int i2, int i3, int i4 )
{
MessageBox( 0, "ahora yo controlo los errores internos", "ok", 0 );
}
#pragma ENDDUMP
function Main()
GeneroError()
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
#include <hbapierr.h>
HB_FUNC( GENEROERROR )
{
hb_xfree( 0 );
}
void hb_errInternal( HB_ERRCODE errCode, const char * szText, const char * szPar1, const char * szPar2 )
{
hb_errRT_BASE( 0, 0, "intentando resolver un error interno", "probando", 0 );
}
#pragma ENDDUMP
Error E2356 D:\\RJCTaller\\PRGftp1302\\errores.prg 21: Type mismatch in redeclaration of 'hb_errInternal'
Error E2344 D:\xHarbour2012\INCLUDE\hbapierr.h 220: Earlier declaration of 'hb_errInternal'
Warning W8057 D:\\RJCTaller\\PRGftp1302\\errores.prg 23: Parameter 'errCode' is never used in function hb_errInternal
*** 2 errors in Compile ***
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Fatal: Unable to open file 'ERRORES.OBJ'
RJCElectronica.EXE - 3 error(es), 1 advertencia(s)
function Main()
GeneroError()
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
#include <hbapierr.h>
HB_FUNC( GENEROERROR )
{
hb_xfree( 0 );
}
void hb_errInternal( HB_ERRCODE errCode, const char * szText, const char * szPar1, const char * szPar2 )
{
hb_errRT_BASE( 0, 0, "intentando resolver un error interno", "probando", 0 );
}
#pragma ENDDUMP
Warning W8057 D:\\RJCTaller\\PRGftp1302\\errores.prg 24: Parameter 'ulIntCode' is never used in function hb_errInternal
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 31 guests