[Quickfix-users] Receiving Messages
Brought to you by:
orenmnero
From: William B. <wb...@UD...> - 2007-02-22 02:57:12
|
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 |