Buenas tardes
Me da un error al intentar abrir bases de datos con nombre menor a 8 caracteres.
Un saludo
if ' ' $ cTable
cTable = '[' + AllTrim( cTable ) + ']'
endif
function Execute( cCode, ... )
local oHrb, cResult, bOldError, uRet
local cFWheaders := If( lIsDir( ".\include" ), ".\include", "c:\FWH\include" )
local cHBheaders := If( lIsDir( ".\include" ), ".\include", "c:\harbour\include" )
FReOpen_Stderr ( "comp.log", "w" )
oHrb = HB_CompileFromBuf( cCode, "-n", "-I" + cFWheaders, "-I" + cHBheaders )
if ! Empty( oHrb )
BEGIN SEQUENCE
bOldError = ErrorBlock( { | o | DoBreak( o ) } )
uRet = hb_HrbDo( hb_HrbLoad( oHrb ), ... )
END SEQUENCE
ErrorBlock( bOldError )
endif
return uRet
//----------------------------------------------------------------//
#pragma BEGINDUMP
#include <stdio.h>
#include <hbapi.h>
HB_FUNC( FREOPEN_STDERR )
{
hb_retnl( ( HB_ULONG ) freopen( hb_parc( 1 ), hb_parc( 2 ), stderr ) );
}
static function DoBreak()
BREAK
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 64 guests