[Quickfix-users] VB.net Compilation Error
Brought to you by:
orenmnero
From: Greg C. <gre...@da...> - 2008-07-21 17:19:24
|
It is actually C#. I wrote the wrong subject.. When I try to compile it bombs on the following 2 lines.. Application application = new MyApplication(); And then SocketAcceptor acceptor = new SocketAcceptor (application, factory, settings, logFactory /*optional*/, messageFactory); If anyone could let me know why this is happening that would be great.. Im using the example code.. using QuickFix; using System; class MyClass { static void Main(string[] args) { if (args.Length != 1) return; String fileName = args[0]; try { SessionSettings settings = new SessionSettings(fileName); Application application = new MyApplication(); FileStoreFactory storeFactory = new FileStoreFactory(settings); FileLogFactory logFactory = new FileLogFactory(settings); MessageFactory messageFactory = new DefaultMessageFactory(); SocketAcceptor acceptor = new SocketAcceptor (application, factory, settings, logFactory /*optional*/, messageFactory); acceptor.start(); // while( condition == true ) { do something; } acceptor.stop(); } catch (ConfigError e) { Console.WriteLine(e); } } } Greg Czechowicz Data Symmetry LLC 908.264.5250 (Ph) 973.953.5944 (Cell) 908.264.5221 (Fx) gre...@da... <mailto:dav...@da...> |