Author Topic: Problem with creation TnrComm in runtime (C++Builder)  (Read 1752 times)

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Problem with creation TnrComm in runtime (C++Builder)
« on: April 20, 2008, 05:58:39 pm »
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:

Code: [Select]
      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

« Last Edit: April 20, 2008, 06:00:47 pm by Roman Novgorodov »
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.