[Quickfix-developers] SocketInitiator prob
Brought to you by:
orenmnero
From: Jonas B. <my_...@ho...> - 2004-07-20 06:43:30
|
Hi I have been using VC++ ver of quickfix and that works fine.. But now I want to implement a simple QuickFix Trading client in C#. Should not be a problem there.. But when I try to create the SocketInitiator object I get an exception : ""Configuration failed: not defined" Cant understand why... The SessionSettings object seems to find the cfg file. Simple code is like this: try { SessionSettings settings = new SessionSettings("c:\\tradeclient.cfg"); FileStoreFactory factory = new FileStoreFactory(settings); FileLogFactory logFactory = new FileLogFactory("output"); MessageFactory messageFactory = new DefaultMessageFactory(); m_application = new FixClientClass(); m_initiator = new SocketInitiator( m_application, factory, settings,logFactory, messageFactory); m_initiator.start(); } catch ( Exception e1 ) { Console.WriteLine( e1 ); } and the tradeclient file loos like this: [DEFAULT] ConnectionType=initiator HeartBtInt=30 FileStorePath=store StartTime=00:00:00 EndTime=00:00:00 UseDataDictionary=N SocketConnectHost=localhost SocketConnectPort=5001 [SESSION] BeginString=FIX.4.2 SenderCompID=CL TargetCompID=ME The code is just in an Form class at the moment for testing, but that should not be a prob??? This is just driving me insane.. Otherwise QF works great in VC++.. Thanx Oren... Cheers /Jonas _________________________________________________________________ Bli förälskad på MSN Dejting http://www.msn.se/dejting/default.asp |