Watch, Follow, &
Connect with Us

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


Welcome, Guest
Guest Settings
Help

Thread: Help with Ambiguity...


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Feb 25, 2017 9:48 AM Last Post By: Antonio Estevez
John MacDonald

Posts: 179
Registered: 3/22/98
Help with Ambiguity...  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2017 3:49 PM
I'm looking to start working with C++ Builder and FireDac Cached updates.

The project is moved over and runs the way it used to....( It is about to be improved, but...)

Now I just found another ambiguity issue.

[bcc32 Error] frmCached.cpp(53): E2015 Ambiguity between 'Firedac::Comp::Dataset::rtModified' and 'Data::Db::rtModified'

I'm not sure where the source code is for FireDac in my installation.
I have Rad Studio XE6 ( I work mostly in C++ ) and I would like to get cached updates working.

Are there examples of Cached updates working in C++ Builder ( XE6 ) that might help?

Has anyone worked around this error?

I believe my next step is to retrieve the changes and then apply them to the main database. This is really great stuff when it works.

Thanks for the help everyone.

--
JMAC out

Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Help with Ambiguity...  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2017 9:09 PM   in response to: John MacDonald in response to: John MacDonald
John MacDonald wrote:
I'm looking to start working with C++ Builder and FireDac Cached updates.

The project is moved over and runs the way it used to....( It is about to be improved, but...)

Now I just found another ambiguity issue.

[bcc32 Error] frmCached.cpp(53): E2015 Ambiguity between 'Firedac::Comp::Dataset::rtModified' and 'Data::Db::rtModified'

I'm not sure where the source code is for FireDac in my installation.
I have Rad Studio XE6 ( I work mostly in C++ ) and I would like to get cached updates working.

Are there examples of Cached updates working in C++ Builder ( XE6 ) that might help?

Has anyone worked around this error?

I believe my next step is to retrieve the changes and then apply them to the main database. This is really great stuff when it works.

Thanks for the help everyone.

--
JMAC out


In your code where you are using rtModified you need to use the full namespace
for the FireDAC rtModified.

Firedac::Comp::Dataset::rtModified

There is no reason to touch the FireDAC source, use namespaces, that is what
they are there for.

http://en.cppreference.com/w/cpp/language/namespace

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)
John MacDonald

Posts: 179
Registered: 3/22/98
Re: Help with Ambiguity...  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 25, 2017 3:59 AM   in response to: Jeff Overcash (... in response to: Jeff Overcash (...
Thanks Jeff:

The ambiguity held us back from setting a filter and reviewing the updates before they were applied. Otherwise everything is working.

The error came up when I was attempting to set the FilterChanges value. I will work through using Namespace.

The error throws because rtModified is needed to set the filters. It is defined in FireDac and I think it is defined in Data::Db....
from what I have seen Namespace is used in the creation of variables. The compiler hits ambiguity when it there is no way to differentiate.

As you know I am not the author of either of these definitions. How do I use namespace to change the scope of either?

John

PS> I really like your signature post. In the one below there is a typing mistake. "all lea/r/ners, doers, teachers"


Jeff Overcash (TeamB) wrote:
John MacDonald wrote:
I'm looking to start working with C++ Builder and FireDac Cached updates.

The project is moved over and runs the way it used to....( It is about to be improved, but...)

Now I just found another ambiguity issue.

[bcc32 Error] frmCached.cpp(53): E2015 Ambiguity between 'Firedac::Comp::Dataset::rtModified' and 'Data::Db::rtModified'

I'm not sure where the source code is for FireDac in my installation.
I have Rad Studio XE6 ( I work mostly in C++ ) and I would like to get cached updates working.

Are there examples of Cached updates working in C++ Builder ( XE6 ) that might help?

Has anyone worked around this error?

I believe my next step is to retrieve the changes and then apply them to the main database. This is really great stuff when it works.

Thanks for the help everyone.

--
JMAC out


In your code where you are using rtModified you need to use the full namespace
for the FireDAC rtModified.

Firedac::Comp::Dataset::rtModified

There is no reason to touch the FireDAC source, use namespaces, that is what
they are there for.

http://en.cppreference.com/w/cpp/language/namespace

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)

--
JMAC out

Edited by: John MacDonald on Feb 25, 2017 7:05 AM
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: Help with Ambiguity... [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 25, 2017 9:48 AM   in response to: John MacDonald in response to: John MacDonald
El 25/02/2017 a las 13:13, John MacDonald escribió:
Thanks Jeff:

As you know I am not the author of either of these definitions. How do I use namespace to change the scope of either?

Just write full namespace before rtModified:

Firedac::Comp::Dataset::rtModified
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02