Jump to content
TSevet

9.4 WPRTEDefs error compiling in Builder 12.3 C++

Recommended Posts

Hi,
I am moving my old project to modern version of Builder,

When building my project with WP Tools 9.3.9.3 I am getting error: 
[bcc32 Error] WPRTEDefs.hpp(1735): E2238 Multiple declaration for '_fastcall TWPAbstractCharAttrInterface::GetFontName(UnicodeString &)'
[bcc32 Error] WPRTEDefs.hpp(1734): E2344 Earlier declaration of '_fastcall TWPAbstractCharAttrInterface::GetFontName(UnicodeString &)'
 

this is due to C++builder System::Uitypes::TFontName type is just the same as System::UnicodeString so trying to compile following (WPRTEDefs.hpp), will not pass:

bool __fastcall GetFontName(System::UnicodeString &FontName)/* overload */;
bool __fastcall GetFontName(System::Uitypes::TFontName &FontName)/* overload */;

 

Just commenting one of the overloads will not work - linker would not recognize obj.

 

Could You kindly help me to surpass that issue?

Regards.

Edited by TSevet

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×