[Quickfix-users] Re: [Quickfix-developers] Converting fix string into fix message
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-10-02 15:28:10
|
Looks like an oversight to me. The easiest thing to do to get this functionality would be to add the setString cmethod. This can be done in the src/.NET/Message.h class. The method would probably look like this: void setString( String* string ) { QF_STACK_TRY try { m_pUnmanaged->setString( convertString(string) ); } catch( FIX::InvalidMessage& e ) { throw new InvalidMessage(); } QF_STACK_END } That should get you going until we fix this up. --- "Christodoulou, Chris D (london)" <chr...@ml...> wrote: > Hi > > I am using quickfix version 1.5.0 for .NET and have > a problem converting a > fix string into a fix message. > > For example: > > Message fixMsg = new Message(); > fixMsg.setString(myFixStringFromSocket); > > Message.Header header = fixMsg.getHeader(); > > QuickFix.MsgType msgType = new > QuickFix.MsgType(); > router.getField(msgType); > > nType = Convert.ToInt32(msgType.getValue()); > switch (nType) > { > case 11: > ExecutionReport execReport = > new ExecutionReport(fixMsg); > > 1. There is no setString in Message ... > 2. There is no copy constructor for Message > 3. and no constructor in execution report to handle > messages. > > How is it done in .NET? This works fine in unix > version. > > Thanks > Chris > Thanks > Chris > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |