[Quickfix-developers] Extracting specific fields from a Message object
Brought to you by:
orenmnero
|
From: Mike S. <MS...@rj...> - 2006-02-22 20:32:48
|
When implementing the public void toAdmin(Message message, SessionID sessionID) method, I'm running into an issue. I want to pull out the MsgType of the message into a string field, but keep getting compile time errors. Here is a code snippet... MsgType msgType =3D new MsgType(); Message.getString(msgType); Here is the error.... Error 2 The best overloaded method match for 'QuickFix.Message.getString(int)' has some invalid arguments C:\Source\QuickFix-Beta\QuickFixConsole\FIXLog.cs 20 13 QuickFixConsole I've tried this a number of ways, and can actually get it to compile, if I code it this way... MsgType msgType =3D new MsgType(); Message.getFied(msgType); String x =3D msgType.getValue(); But then I get a runtime error saying the Field cannot be found. I have verified that MsgType is in the message. When I do message.ToString(), I can see the full message fine. Any tips on how I can pull out specific field values from a Message object? Thanks, Mike |