a little out of my depth here but researching hard before asking the questions. This is a little long but I will try to give everything I have done so far.
I am trying to compile the Hunspell example projects. I am stuck with using D5ent as I am retired and cannot afford to buy later versions as I only program for myself now.
The first problem I have is PPChar but some searching suggests two options to replicate this in D5.
type
PPChar = Array[0..0] of PChar; { with Range check off }
or
PPChar = Array of PChar;
Both seem to compile OK. But in the final part of the project in order to display the spelling suggestions the Project has...
Memo1.Lines.Add(UTF8Decode(wrds^));
UTF8Decode does not exist in D5, so more research turned up this page here. Utf8ToString and older Delphi versions
With thanks to Arnaud, I downloaded and created two units SynCommons and SynLZ (required by SynCommons). I included the routine Arnaud described and then changed the Project
Memo1.Lines.Add(UTF8Decode(wrds^));
to
Memo1.Lines.Add(UTF8DecodeToString(@wrds,SizeOf(@wrds)));
That compiles OK but when I run the Project I get a list of graphics characters.
Finally the questions: What am I doing wrong? How do I make it work?
Thanks