大家好!在下正在学习fix,从quickfix下载了示例,说明也看了,感觉似乎要先启动服务端程序,再启动executor_csharp这个示例才有用,不知道对不? 已经runut debug 8888 ,显示 <output> .............................. ....................... <results total="162" failures="0"> 运行executor_csharp executor_csharp.xml 出错 显示在executor_csharp中第43行 SocketAcceptor acceptor = new SocketAcceptor( application, storeFactory, settings, logFactory, messageFactory ); 无法实例化此行 executor_csharp.xml 配置文件如下 # default settings for sessions [DEFAULT] ConnectionType=initiator ReconnectInterval=60 SenderCompID=TW # session definition [SESSION] # inherit ConnectionType, ReconnectInterval and SenderCompID from default BeginString=FIX.4.1 TargetCompID=ARCA StartTime=18:14:00 EndTime=23:30:00 HeartBtInt=20 SocketConnectPort=8888 SocketConnectHost=127.0.0.1 DataDictionary=FIX41.xml 目录中已经拷贝2个dll ,quickfix_net.dll和quickfix_net_messages.dll 另外,拷贝了fix41.xml,还建立了个log/Fix4.1空文件夹 不清楚这个客户端程序如何才能运行啊?请大家指点下!不胜感激! 金钱豹 QQ:787480882 Msn:jqbsq@hotmail.com
建议参考 http://www.quickfixengine.org/quickfix/doc/html/configuration.html 了解一下QUICKFIX的配置。从你的executor_csharp.xml来看,有明显的与EXECUTOR不符的错误:这应该是一个acceptor(服务端)的配置,而不是initiator(客户端)。一个acceptor的配置文件(请注意本机标识为Arca,对端为tw,与initiator的立场正好相反)可能如下:[/url] [DEFAULT] ConnectionType=acceptor SocketAcceptPort=8888 FileStorePath=store FileLogPath=log StartTime=00:00:00 EndTime=00:00:00 SenderCompID=ARCA [SESSION] BeginString=FIX.4.1 TargetCompID=TW DataDictionary=FIX41.xml