Alaska Software Inc. - Problem loading DBFDBE
Username: Password:
AuthorTopic: Problem loading DBFDBE
Pedro HernndezProblem loading DBFDBE
on Mon, 06 Sep 2004 13:50:12 -0500
I'm trying to run my new xbase app and put in the main procedure this

 IF ! DbeLoad( "DBFDBE", .T.)       load engine for DBF files
      ALERT( "Database Engine DBFDBE not loaded" , {"OK"} )
   ENDIF

   IF ! DbeLoad( "NTXDBE" , .T.)      load engine for CDX files
      ALERT( "Database Engine CDXDBE not loaded" , {"OK"} )

   ENDIF
                                      assemble engines for data
                                      record and index management
   IF ! DbeBuild( "DBFNTX", "DBFDBE", "NTXDBE" )
      ALERT( "Database Engine DBFCDX not created" , {"OK"} )
   ENDIF



But is giving me this message


----------------------------------------------------------------------------
--
ERROR LOG of "C:\PROYECTO\xbase\CIFTE\2000\CISECURY.EXE" Date: 06/09/2004
13:49:09

Xbase++ version     : Xbase++ (R) Version 1.80.284
Operating system    : Windows XP 05.01 Build 02600 Service Pack 1
----------------------------------------------------------------------------
--
oError:args         :
          -> VALTYPE: C VALUE: DBFDBE
          -> VALTYPE: L VALUE: T
oError:canDefault   : .T.
oError:canRetry     : .F.
oError:canSubstitute: .F.
oError:cargo        : NIL
oError:description  : Invalid DLL name for DBE
oError:filename     :
oError:genCode      :         52
oError:operation    : DbeLoad
oError:osCode       :          0
oError:severity     :          2
oError:subCode      :       8009
oError:subSystem    : BASE
oError:thread       :          1
oError:tries        :          0
----------------------------------------------------------------------------
--
CALLSTACK:
----------------------------------------------------------------------------
--
Called from MAIN(30)

What do you think.

Thanks
James Loughner Re: Problem loading DBFDBE
on Mon, 06 Sep 2004 19:08:51 -0400
This should be done in a DBESYS function. The problem is that the DBESYS 
function is predefined and run before MAIN. So, the DBFDBE is already 
loaded. See the DBESYS.PRG in the source\sys\ directory. You can 
overload the default DBESYS function by including your own in the build.

Jim

Pedro Hernández wrote:

> I'm trying to run my new xbase app and put in the main procedure this
> 
>  IF ! DbeLoad( "DBFDBE", .T.)       load engine for DBF files
>       ALERT( "Database Engine DBFDBE not loaded" , {"OK"} )
>    ENDIF
> 
>    IF ! DbeLoad( "NTXDBE" , .T.)      load engine for CDX files
>       ALERT( "Database Engine CDXDBE not loaded" , {"OK"} )
> 
>    ENDIF
>                                       assemble engines for data
>                                       record and index management
>    IF ! DbeBuild( "DBFNTX", "DBFDBE", "NTXDBE" )
>       ALERT( "Database Engine DBFCDX not created" , {"OK"} )
>    ENDIF
> 
> 
> 
> But is giving me this message
> 
> 
> ----------------------------------------------------------------------------
> --
> ERROR LOG of "C:\PROYECTO\xbase\CIFTE\2000\CISECURY.EXE" Date: 06/09/2004
> 13:49:09
> 
> Xbase++ version     : Xbase++ (R) Version 1.80.284
> Operating system    : Windows XP 05.01 Build 02600 Service Pack 1
> ----------------------------------------------------------------------------
> --
> oError:args         :
>           -> VALTYPE: C VALUE: DBFDBE
>           -> VALTYPE: L VALUE: T
> oError:canDefault   : .T.
> oError:canRetry     : .F.
> oError:canSubstitute: .F.
> oError:cargo        : NIL
> oError:description  : Invalid DLL name for DBE
> oError:filename     :
> oError:genCode      :         52
> oError:operation    : DbeLoad
> oError:osCode       :          0
> oError:severity     :          2
> oError:subCode      :       8009
> oError:subSystem    : BASE
> oError:thread       :          1
> oError:tries        :          0
> ----------------------------------------------------------------------------
> --
> CALLSTACK:
> ----------------------------------------------------------------------------
> --
> Called from MAIN(30)
> 
> What do you think.
> 
> Thanks
> 
> 
>