WPCubed Product Support

Error 2303 when compiling in CPP Builder 6.0

Hi,

The following error came up when I tried to compile the Legacy CPP Builder application after upgrading from WPTools 4.22 to 6.0

[C++ Error] Wpdbrich.hpp(177): E2303 Type name expected

any idea what could be the reason for the error?

Thanks

OS : MS XP Pro SP3
RAD: BCB 6.0

#1 ♥ 0
3.5k Views 2 users read 2 min
support

That HPP file has

__property HyperLinkEvent ;

her. That looks ok to my understanding. If the compiler did not create a HPP file correcty don't hesitate to change it or commant something out.

Julian

#2 ♥ 0

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);

#3 ♥ 0
This category is archived. No new posts are possible.