Re: [Quickfix-users] Receiving Messages
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2007-02-22 16:21:25
|
Do you have quickfix/fix42/TradingSessionStatus.h included in your file? --oren On Feb 21, 2007, at 8:57 PM, William Boyer wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hello, > > Does anyone know why this code: > > void CMyAppThread::onMessage( const FIX42::TradingSessionStatus& > message, const FIX::SessionID& sessionID){ > FIX::TradingSessionID tradingSessionID; > // message.get(tradingSessionID); > > FIX::TradSesStatus tradSesStatus; > // message.get(tradSesStatus); > > FIX::Text text; > // message.get(text); > } > > Results in this compile error, whenever any of the comments are > removed?: > > Compiling... > MyAppThread.cpp > C:\ARBITRAGE\DIALOGBASED\Arbitrage\MyAppThread.cpp(192) : error > C2027: use of undefined type 'TradingSessionStatus' > c:\fixengine\quickfix\1.12.4\vs6\include\quickfix\fix42 > \messagecracker.h(57) : see declaration of 'TradingSessionStatus' > C:\MyApp\MyAppThread.cpp(192) : error C2228: left of '.get' must > have class/struct/union type > Error executing cl.exe. > > But this is no problem: > void CMyAppThread::onMessage( const FIX42::NewOrderSingle& message, > const FIX::SessionID& sessionID){ > FIX::ClOrdID clOrdID; > message.get(clOrdID); > > FIX::ClearingAccount clearingAccount; > message.get(clearingAccount); > } > > TIA, > -Billy |