I use BCB5 and TsiLang V5.3.2. After I upgrade to TsiLang V6.0.2,
My program could not be compiled since the prototypr of MessageDlg is changed to:
int __fastcall MessageDlg(const AnsiString Msg, Dialogs::TMsgDlgType DlgType, Dialogs::TMsgDlgButtons Buttons, int HelpCtx, const Dialogs::TMsgDlgBtn DefaultBtn, const Dialogs::TMsgDlgBtn CancelBtn);
There are two new parameters: DefaultBtn and CancelBtn. Why?
How to compile my program successfully? I don't want to modify my source code.
Question about the prototype of MessageDlg()?
It looks like a bug in BCB5 HPP generation from PAS file. These two additional parameters have default value and may be omitted. Could you please manually modify generated HPP file to use:
?
Please let me know if this helps.
Code: Select all
int __fastcall MessageDlg(const AnsiString Msg, Dialogs::TMsgDlgType DlgType, Dialogs::TMsgDlgButtons Buttons, int HelpCtx, const Dialogs::TMsgDlgBtn DefaultBtn = (Dialogs::TMsgDlgBtn)(0x2), const Dialogs::TMsgDlgBtn CancelBtn = (Dialogs::TMsgDlgBtn)(0x3));
Please let me know if this helps.
Best regards,
Igor Siticov.
Igor Siticov.