Re: [Quickfix-developers] Error converting FIX40::NewOrderList to FIX::Message
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-08-13 20:45:33
|
You're a java developer arn't you :) Ok, there are a few problems here. The big one is that you're trying to copy a pointer into an object without dereferencing it. Also, you are allocatting on the heap without deleting, which will give you a memory leak. In any case, if you have a need for such a method, you could simply write it like this. FIX::Message getNewOrderList() { return FIX40::NewOrderList newOrderList( FIX::ListID(listID), FIX::ListSeqNo(ListSeqNo), FIX::ListNoOrds(ListNoOrds), FIX::ClOrdID(clOrdID), FIX::HandlInst(chHandlInst), FIX::Symbol(symbol), FIX::Side(chSide), FIX::OrderQty(orderQty), FIX::OrdType(chOrdType)); } __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |