• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

Coexistance ApdComPort and nrComm

Started by tomo, October 01, 2012, 04:50:55 am

Previous topic - Next topic

tomo

In a project I have both mentioned components: ApdComPort and nrComm. In a software I'm trying to set Parity and now I'm getting a message:

Ambiguity between pNone(pOdd, pEven) and Adport::pNone(pOdd, pEven). What do I have to do in headers to make it work ?

Thanks and best regards.

Tomaz

tomo

Problem solved !

  As I had mentioned, there was a problem with property TParity. It is defined in Adport.hpp and also in Nrcomm.hpp. In my source I used the sentences:

nrComm1->Parity = pNone;
ApdComPort1->Parity = pNone;

Because of this I had an ambiguity problem. The solution is, that I specifically have to call, from which namespec enum should be used. So for Async professional the namespec is Adport and for Nrcomm lib the namespec is Nrcomm. Now I have the following in my code:

nrComm1->Parity = Nrcomm::pNone;
ApdComPort1->Parity = Adport::pNone;