Thanks for the work around option, commenting out the following line in 'Wpdbrich.hpp' allow the compilation to go through.
line 177: __property OnPrepareImageForSaving ;
however the behavior of the TWPDBRicText component is no longer the same as version 4.22. The application is currently cannot convert the TWPDBRichText content in RTF form to a consistant Binary Stream!? I was wondering if commenting out the above line has anything to do with the problem I am currently facing?
There are also major differences between TWPDBRichText in ver 4.22 vs. 6.0 ( i.e. MemoryFormat, WriteBitMapMode) which I may have to resolve before getting the application to work as before.
FYI: The application convert the RichText content to a Binary Stream and uses the same concept in reverse to retrieve the RichText from a Binary File and update the database. Sort of a Make Shift Database Archival Tool
save to a Binary Stream
TMemoryStream* mStream = new TMemoryStream();
WPDBRichText->SelectAll();
WPDBRichText->TextSaveFormat = "RTF";
WPDBRichText->SaveToStream(mStream);
Note: the number of Bytes per RichText Content is Different from WPTools ver 4.22 vs. ver 6.0 (?)
retrieve from a Binary File
WPDBRichText->DataField = String(db_table.tuple[numOfTuples-1].name);
WPDBRichText->Changing();
WPDBRichText->Lines->LoadFromFile(rtfFile);