I use a spell checker library that has been around for many years, and is sold to developers for inclusion in their programs. I recent had to purchase an update to get both 32 bit and 64 bit libraries. Essentially we initiallize the proper .dll, and make the API calls.
In this case, I take a database field, pass it to the spell check routine, it works to correct any errors ( on it's popup dialog ), and then the value is passed back. I use database objects, so I update the value, save the record to disk, and refresh the display.
On my computers it works fine. On many of my clients' systems it works as expected. However, on some, when the value is passed back from the spell checker, the result is not saved, and the display does not refresh with the corrections.
I am using the latest FWH release, with Microsoft Visual Studio Community 2022, and the latest Harbour version for MSVC.
Here is the get ( using a dialog in a .rc file )
- Code: Select all Expand view
- REDEFINE GET oSpcv2 VAR oServiceUnitsr:vehmpd MEMO ID 2215 OF oFldCSE:aDialogs[ 2 ] MESSAGE "These are notes on the vehicle" UPDATE
And this is the button that activates the spell checker:
- Code: Select all Expand view
- DEFINE BUTTON oBtn114 OF oBarVE RESOURCE "SPELL" PROMPT "Spell" TOOLTIP "Spell Check notes" ;
ACTION ( oServiceUnitsr:vehmpd := SpellOne( oServiceUnitsr:vehmpd ), oServiceUnitsr:save(),;
oSpcv2:refresh(), oFldCSE:aDialogs[2]:update() )
It is frustrating because of course it all works perfectly on my computers so I can't replicate a problem ...
I'd appreciate any thoughts on where I should look to try and isolate this problem. Your input is appreciated.