RE: [Quickfix-developers] NoRelatedSym Class
Brought to you by:
orenmnero
From: Jon D. <jd...@Li...> - 2003-04-25 15:26:57
|
Here is the QuoteRequest Function FIX43::QuoteRequest Application::queryQuoteRequest43() { FIX43::QuoteRequest quoteRequest(FIX::QuoteReqID( = genQuoteRequestID())); quoteRequest.set( queryStrikePrice() ); quoteRequest.set( queryTimeInForce() ); quoteRequest.set( queryMaturityMonthYear() ); quoteRequest.set( querySide() ); quoteRequest.set( queryQuoteType() ); quoteRequest.set( queryNoRelatedSym() ); quoteRequest.set( queryCFICode() ); =09 queryHeader(quoteRequest.getHeader()); return quoteRequest; } And here is the compile error(s) abbreviated for other fields because = results are the same Compiling... Application.cpp E:\quickfix\examples\tradeclient\Application.cpp(207) : error C2664: = 'void __thiscall FIX43::QuoteRequest::set(const class FIX::QuoteReqID = &)' : cannot convert parameter 1 from 'class FIX::StrikePrice' to 'const = class FIX::QuoteReqID &' Reason: cannot convert from 'class FIX::StrikePrice' to 'const = class FIX::QuoteReqID' No constructor could take the source type, or constructor = overload resolution was ambiguous ... Obviously I am doing something wrong by not fully understanding the lib = -- "Tarter Sauce" -----Original Message----- From: OM...@th... [mailto:OM...@th...] Sent: Friday, April 25, 2003 10:14 AM To: Jon Dahl Cc: qui...@li...; qui...@li... Subject: Re: [Quickfix-developers] NoRelatedSym Class What is the nature of your problem? Are you getting compilation errors? Runtime errors? Any errors? Which API are you using? Adding fields to = a group should be just like adding them to a message, using the set or setField methods. --oren |---------+-----------------------------------------------> | | "Jon Dahl" | | | <jd...@Li...> | | | Sent by: | | | qui...@li...ur| | | ceforge.net | | | | | | | | | 04/25/2003 09:58 AM | | | | |---------+-----------------------------------------------> = >------------------------------------------------------------------------= ----------------------| | = | | To: <qui...@li...> = | | cc: = | | Subject: [Quickfix-developers] NoRelatedSym Class = | = >------------------------------------------------------------------------= ----------------------| Hello All, I have been try to code a QuoteRequest message and have run into a = snag with the NoRelatedSym class. What is the best way to set the fields in = this class? For example I want to set the Symbol, StrikePrice and some other = fields in that class. Anyone give me a pointer on how to set those fields? Thanks, JD |