<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:12pt"><div>Hi,</div><div><font size="3">I guess the </font><font size="3">reason for that in your case u are adding some new fields (Raw Data and Raw Data Length), but the check sum in the trailer is not getting changed. its still same so the message is not getting validated.</font></div><div><font size="3"><br></font></div><div><font size="3"><br></font></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; "><span style="font-size: 16px; line-height: normal; font-family: arial, helvetica, sans-serif; ">Kapil Kumar Lalwani</span><br style="font-size: 16px; line-height: normal; font-family: arial, helvetica, sans-serif; "><br style="font-size: 16px; line-height: normal; font-family: arial, helvetica, sans-serif; "><span style="font-size: 16px; line-height: normal; font-family: arial, helvetica, sans-serif;
 ">“Enjoy the WORK you do, Do the BEST you can.”</span> <br></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; "><br></div>  <div style="font-family: verdana, helvetica, sans-serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> 搭错车 <523126237@qq.com><br> <b><span style="font-weight: bold;">To:</span></b> kaplalwani <kaplalwani@yahoo.co.in> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 7 August 2012 8:01 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> fix  rawdata can u help me?<br> </font> </div> <br><div id="yiv1291067584"><div> </div>
<div>
<div>hi,</div>
<div> </div>
<div>In FIX, How can I use RawData field? </div>
<div> </div>
<div>Can u help me?</div>
<div>Thanks</div>
<div> </div>
<div>the next is my code:</div>
<div>void test()<br> {<br>  string exampleMsgStr = "8=FIX.4.2^9=209^35=D^49=AFUNDMGR^56=ABROKER^34=2^52=20030615-01:14:49^11=12345^1=111111^63=0^64=20030621^21=3^110=1000^111=50000^55=IBM^48=459200101^22=1^54=1^60=2003061501:14:49 38=5000^40=1^44=15.75^15=USD^59=0^9000=ABCDEF^10=155^";</div>
<div>  for (string::iterator it = exampleMsgStr.begin(); <br>   exampleMsgStr.end() != it; ++it)<br>  {<br>   if (*it == 0x5E)<br>    *it = 0x01;<br>  }<br>   <br>  Message exampleMsg(exampleMsgStr);  <br>  std::string special_str = "AFUNDMGR";<br>  special_str[2] = '\1'; </div>
<div>  exampleMsg.getHeader().setField(RawDataLength(special_str.length()));<br>  exampleMsg.getHeader().setField(RawData(special_str)); <br>  string serializeStr = exampleMsg.toString(); <br>  Message exampleMsg2(serializeStr);// crash </div>
<div> };</div>
<div> </div>
<div> </div>
<div><br><br> </div>
</div></div><br><br> </div> </div>  </div></body></html>