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

Problem with creation TnrComm in runtime (C++Builder)

Started by Roman Novgorodov, April 20, 2008, 02:58:39 pm

Previous topic - Next topic

Roman Novgorodov

April 20, 2008, 02:58:39 pm Last Edit: April 20, 2008, 03:00:47 pm by Roman Novgorodov
Hello

You are using an incorrect way for initialization the TraceStates property:

nrComm1->TraceStates << tsRxChar;

Please use the following code:

nrComm1->TraceStates = TTraceStates() << tsRxChar;

Good luck!

Roman

Quote
Hello

We are using following code for create TnrComm object in runtime:


      nrComm1 = new TnrComm(0);
      nrComm1->BaudRate = 9600;
      nrComm1->Parity = pNone;
      nrComm1->StopBits = sbOne;
      nrComm1->ByteSize = 8;
      nrComm1->ComPortNo = 1;
      nrComm1->TraceStates << tsRxChar;
      nrComm1->StreamProtocol = spNone;
      nrComm1->OnAfterReceive = nrComm1AfterReceive;

But nrComm1AfterReceive function (event handler) never occurs.
Please help.

Eugeniy

DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.