{{Quickfixn}} fix rawdata can u help me?
KAPIL KUMAR LALWANI
kaplalwani at yahoo.co.in
Mon Aug 6 22:36:03 PDT 2012
Hi,
I guess the 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.
Kapil Kumar Lalwani
“Enjoy the WORK you do, Do the BEST you can.”
________________________________
From: 搭错车 <523126237 at qq.com>
To: kaplalwani <kaplalwani at yahoo.co.in>
Sent: Tuesday, 7 August 2012 8:01 AM
Subject: fix rawdata can u help me?
hi,
In FIX, How can I use RawData field?
Can u help me?
Thanks
the next is my code:
void test()
{
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^";
for (string::iterator it = exampleMsgStr.begin();
exampleMsgStr.end() != it; ++it)
{
if (*it == 0x5E)
*it = 0x01;
}
Message exampleMsg(exampleMsgStr);
std::string special_str = "AFUNDMGR";
special_str[2] = '\1';
exampleMsg.getHeader().setField(RawDataLength(special_str.length()));
exampleMsg.getHeader().setField(RawData(special_str));
string serializeStr = exampleMsg.toString();
Message exampleMsg2(serializeStr);// crash
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20120807/5559fadf/attachment.htm>
More information about the Quickfixn
mailing list