Re: [Quickfix-developers] Badly formed messages
Brought to you by:
orenmnero
From: <OM...@th...> - 2003-02-13 22:56:58
|
Unfortunately this is one of those situations where C++ lacks real type safety. I would recommend that you use the predefined constants whenever possible. If you include Values.h, you could write the line like this: FIX::ExecTransType( FIX::ExecTransType_NEW ); On the one hand, it is more typing. But the upshot is it is self documenting and you will be sure you are using a valid value. --oren |---------+-----------------------------------------------> | | Chris Patmore | | | <Chr...@BT...> | | | Sent by: | | | qui...@li...ur| | | ceforge.net | | | | | | | | | 02/13/2003 04:38 PM | | | | |---------+-----------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: quickfix-developers <qui...@li...> | | cc: | | Subject: [Quickfix-developers] Badly formed messages | >----------------------------------------------------------------------------------------------| If I accidentally do FIX::ExecTransType(0) rather than FIX::ExecTransType('0') there is no complaint from the compiler or at run time. The net result seems to be that my message is corrupt when received. The receiving process silently discards it because the calculated body length does not match the stated length. Is there some sensible way of avoiding this? Chris Patmore **************************************************************************** This message is confidential to the sender and addressee, and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it from your system, destroy any copies, and notify the sender immediately. Opinions stated herein are not necessarily those of BrokerTec. BrokerTec reserves the right to monitor messages that pass through it's networks. BrokerTec Europe Ltd is regulated by FSA. ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |