[Quickfix-developers] Custom FIX Message Types
Brought to you by:
orenmnero
From: Malinka R. <ael...@gm...> - 2008-10-08 23:50:02
|
I know this has been discussed before however looking through the archive i was unable to determine how to successfully add a new message type to the system, so that it will work with MessageCracker. In C#, I created a new class inheriting QuickFix44 with the tags I will be needing in this message, and then in my Application/Message Cracker object I added a public new void onMessage(QuickFix.Message, QuickFix.SessionID ses), which I created an if statement looking for the MsgType value the new Message will be using, which all works correctly, however when I try casting to the new message type, the same as is done in the QuickFix44 MessageCracker, It throws an InvalidCastException saying it can't convert from QuickFix44.Message to my new Message type. After looking through the Message code I'm not seeing why this would be. Any help or suggestions would be appreciated. |