[Quickfix-developers] QuickFix Acceptor and MFC
Brought to you by:
orenmnero
From: <lig...@gm...> - 2004-08-06 17:11:30
|
Hi all, =20 could anyone tell me how to integrate the SocketAcceptor into a MFC VC++ = 6 application? Currently im doing the following calls in the initinstance() method of = my CWinAPP derived class: =20 try { FIX::SessionSettings settings( "setup.cfg" ); FixIfc fixIfc; // My QF Application derived class ... FIX::FileStoreFactory factory( settings ); FIX::ScreenLogFactory logFactory( true, true, true ); FIX::SocketAcceptor acceptor( fixIfc, factory, settings, logFactory ); =20 acceptor.start(); } catch ( std::exception & e ) { AfxMessageBox( e.what() ); } =20 while executing start() i get the following error: =20 R6025 =96 pure virtual function call =20 When debugging the application i can see the following stack: _NMSG_WRITE(int 25) line 221 _amsg_exit(int 25) line 324 + 9 bytes _purecall() line 35 + 7 bytes FIX::Acceptor::startThread(void * 0x0012fd8c) line 208 + 13 bytes _threadstartex(void * 0x00c51fd8) line 212 + 13 bytes KERNEL32! 77e5d33b() =20 Using block() instead of start() works (the connection gets established = and i see my add appears in banzai --> also the application itself can=92t = be used anymore).=20 =20 Or , does anyone knows a way to integrate the QF acceptor into the MFC = Main Loop or get the Socket Connections running with MFC? =20 =20 Thanks, Nico |