Author Topic: How to set PacketBegin = R4  (Read 882 times)

Jovans

  • Newbie
  • *
  • Posts: 8
    • View Profile
How to set PacketBegin = R4
« on: October 27, 2011, 12:16:09 pm »
Hi,

How do you specify PacketBegin to be R4 (ie 82,4) in C++?

My problem is the '4' is 'EOT' not the number 4

I have tried:

nrDataProcessor1->DataPackets->Items[0]->PacketBegin = "R4";

But this is interpreted as 82 which is correct, and 52 which is the number 4 (not EOT as wanted).

Thanks

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: How to set PacketBegin = R4
« Reply #1 on: October 28, 2011, 01:28:50 pm »
Hello

It is subtleties of С/С++ syntax. You can try something like following:


Code: [Select]
nrDataProcessor1->DataPackets->Items[0]->PacketBegin = "R\x04";
Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.