• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
November 21, 2024, 11:01:11 am

News:

SMF - Just Installed!


How to set PacketBegin = R4

Started by Jovans, October 27, 2011, 10:16:09 am

Previous topic - Next topic

Jovans

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

Hello

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


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.