Re: [Quickfix-users] Receiving Messages
Brought to you by:
orenmnero
From: Ajay K. <Aja...@tr...> - 2007-02-22 11:46:59
|
It looks you are missing include <quickfix/fix42/TradingSessionStatus> in your cpp file. -----Original Message----- From: William Boyer [mailto:wb...@UD...]=20 Sent: Wednesday, February 21, 2007 9:57 PM To: qui...@li... Subject: [Quickfix-users] Receiving Messages 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' =20 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 ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Quickfix-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-users -------------------------------------------------------------------------= -- The information in this email is confidential and may be legally = privileged. It is intended solely for the addressee. Access to this email by anyone = else is unauthorized. If you are not the intended recipient, any disclosure, = copying, distribution or any action taken or omitted to be taken in reliance on = it, is prohibited and may be unlawful. TradeWeb reserves the right to monitor and review the content of all = messages sent to or from this e-mail address. Messages sent to or from this e-mail = address may be stored on the TradeWeb e-mail system. |