Antonio, Changed DataBase.prg as instructed but cannot add it to FiveH.lib because my MS and Pelles librarians are reporting problems with the LIB.
I hadn't been linking FiveH.lib to my application before now so I added it to my link script. The MS linker is reporting that it's corrupt. I reinstalled FiveH.lib from my original FiveWin distribution and both librarians and the MS linker are reporting problems with it.
My compiler is Microsoft so I made the changes suggested by Antonio to FiveHM.lib. I then compiled a copy of dbf01.prg. Running the program with the modified FiveHM.lib the program crashed with the error:
Error description: Error BASE/44 Assigned value is wrong class: TDATABASE:BBOF Args: [ 1] = B {|| ... }
Stack Calls =========== Called from: => TDATABASE:_BBOF(0) Called from: dbf01.prg => TDATABASE:NEW(161) Called from: dbf01.prg => CLIENTSBROWSE(182) Called from: dbf01.prg => (b)BUILDMENU(42) Called from: => TMENU:COMMAND(0) Called from: => TWINDOW:COMMAND(0) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\WINDOW.PRG => _FWH(0) Called from: => WINRUN(0) Called from: => TWINDOW:ACTIVATE(0) Called from: dbf01.prg => MAIN(25)
I the relinked with the original version of Fivehm.lib which of course returned my original error: Error description: Error BASE/44 Assigned value is wrong class: TDATABASE:CALIAS Args: [ 1] = C CUSTOMER
Stack Calls =========== Called from: => TDATABASE:_CALIAS(0) Called from: dbf01.prg => TDATABASE:NEW(0) Called from: dbf01.prg => CLIENTSREC(64) Called from: dbf01.prg => (b)BUILDMENU(39) Called from: => TMENU:COMMAND(0) Called from: => TWINDOW:COMMAND(0) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\WINDOW.PRG => _FWH(0) Called from: => WINRUN(0) Called from: => TWINDOW:ACTIVATE(0) Called from: dbf01.prg => MAIN(25)
Antonio, Could you possibly send me a copy of the modified DataBase.prg you used to create the special version of Fivehm.lib you sent me the other day?
I'd like to experiment with it on my own to see what I can learn about the tDataBase class and perhaps find the reason it's not working on my system.