Re: [Quickfix-developers] Strange error...
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2004-01-07 15:43:36
|
Those fields are not members of QuickFix42.NewOrderSingle, they are members of Quickfix42.Header, you should add them as follows: fixord.set( new QuickFix.getHeader().SenderCompID("SEND")); "Sa...@uc..." <sa...@uc...> wrote: Hello all... I'm attempting to build a NewOrderSingle message beginning with the following lines... ========================================================================== QuickFix42.NewOrderSingle fixord = new QuickFix42.NewOrderSingle() ; fixord.set( new QuickFix.SenderCompID("SEND")); //ERROR fixord.set( new QuickFix.TargetCompID("TARG")); //ERROR fixord.set( new QuickFix.SenderSubID("SSID")); //ERROR fixord.set( new QuickFix.TargetSubID("TSID")); //ERROR fixord.set( new QuickFix.ClOrdID("10001")) ; fixord.set( new QuickFix.Symbol("IBM")) ; fixord.set( new QuickFix.Side(QuickFix.Side.BUY)) ; fixord.set( new QuickFix.OrderQty(100) ; ========================================================================== The first 4 lines produce errors : ============================================== error CS1502: The best overloaded method match for 'QuickFix42.NewOrderSingle.set(QuickFix.ClearingAccount)' has some invalid arguments error CS1503: Argument '1': cannot convert from 'QuickFix.Field' to 'QuickFix.ClearingAccount' ============================================= .. Any idea why it would produce these errors?? .. Am I going about this the right way? Thanks, Sam ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers --------------------------------- Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes |