Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Error messages compiling MessageDlg on Android



Permlink Replies: 1 - Last Post: Oct 13, 2016 11:28 AM Last Post By: Remy Lebeau (Te...
phil ede

Posts: 11
Registered: 8/25/10
Error messages compiling MessageDlg on Android
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 13, 2016 4:19 AM
Friends,

I have copied a number of code examples using MessageDlg with #include <FMX.Dialogs.hpp> in the header, but get the following error messages

[bccaarm Error] Unit1.cpp(47): use of undeclared identifier 'mtError'
[bccaarm Error] Unit1.cpp(52): use of undeclared identifier 'mmResults'

Any advice would be welcome

Thanks

Phil

Edited by: phil ede on Oct 13, 2016 6:25 AM
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Error messages compiling MessageDlg on Android [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 13, 2016 11:28 AM   in response to: phil ede in response to: phil ede
phil wrote:

[bccaarm Error] Unit1.cpp(47): use of undeclared identifier 'mtError'

The mobile compilers use C++11 scoped enums:

http://docwiki.embarcadero.com/RADStudio/en/Strongly_Typed_Enums_(C%2B%2B11)

So you have to qualify each identifier with the name of the enum that it
comes from, in this case "TMsgDlgType::mtError".

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02