Hi, I tried this sample, because I was thinking that loading a HRB file would load dynamically the HRB symbol table, adding new function or REPLACING function with same name in the exe !!! In fact it just add new function, always using exe function when they also exist.
What am I missing ? JF, PS : the following are real sample, compiled and tested. THIS IS THE MAIN EXE "testHrb.prg" ------------------------------------ Procedure Main() Local pHrb, cExe := "Msg()" Msg() // return "Function called from exe file" as expectd pHrb := hb_HrbLoad( "ExtMsg.hrb" ) Msg() // return "Function called from exe file" ERROR !!!! &cExe // Tried just in case ... but ...IDEM cExe := "Msg2()" &cExe // return "Function2 called from HRB file" as expected and prove HRB file correctly loaded hb_HrbUnload( pHrb ) Return Function Msg() ? "Function called from exe file" Return .T. END OF MAIN EXE ----------------------------------- This is HRB prg "ExtMsg.hrb" --------------------------------- Function Msg() // in my mind this one should replace the exe one after loading the hrb file ???? ? "Function called from HRB file" Return .T. Function msg2() ? "Function2 called from HRB file" Return .T. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour