<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
..MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Stan,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’m having the same problem with QuickFix.FIX42.MarketDataIncrementalRefresh.NoMDEntriesGroup<br><br><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Looking over the code now, I think the solution is to either add a whole bunch of implicit conversion operators to the base Group class, or a constructor to each of the derived classes that accepts the base class as a parameter. The constructor route seems safer/easier because you can’t use it out of context unknowingly.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Logan<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> quickfixn-bounces@lists.quickfixn.com [mailto:quickfixn-bounces@lists.quickfixn.com] <b>On Behalf Of </b>S Tan<br><b>Sent:</b> Monday, 9 April 2012 9:30 p.m.<br><b>To:</b> quickfixn@lists.quickfixn.com<br><b>Subject:</b> {{Quickfixn}} Question about GetGroup<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi there,<br><br>At the bottom of <a href="http://quickfixn.org/tutorial/repeating-groups">http://quickfixn.org/tutorial/repeating-groups</a>, we see this code<o:p></o:p></p><div style='margin-left:30.0pt'><p class=MsoNormal><span style='font-family:"Courier New"'>var noSidesGrp = new QuickFix.FIX44.TradeCaptureReport.NoSidesGroup();<br>for(int grpIndex = 1; grpIndex<= message.GetInt(Tags.NoSides); grpIndex += 1)<br>{<br>   noSidesGrp = message.GetGroup(grpIndex, Tags.NoSides);<br>}</span><o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>This won't compile in VS2010 as noSidesGrp has type QuickFix.FIX44.TradeCaptureReport.NoSidesGroup but message.GetGroup returns the base class Group.<br><br>Is there any way we can call GetGroup and obtain the correct subclass of Group based on the input tags? I've looked into the UnitTests and they mostly test the base class Group.<br><br>I think in QuickFix/C++ we can call message.GetGroup(grpIndex, noSidesGrp) so that GetGroup gets the type information. Perhaps not quite idiomatic C#.<br><br>stan<o:p></o:p></p></div>
<pre>
------------------------------------------------------------------------------------------------------------
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. 
Any views or opinions expressed are solely those of the author and do not necessarily represent those of Velocity Trade (VT) or any of its affiliates.  In no way are the contents of this email be viewed as a solicitation of any kind.  If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone. 
Please contact the sender if you believe you have received this email in error. Velocity Trade Foreign Exchange Services Ltd is an Authorised Representative of Velocity Trade International Limited - regulated by the Financial Services Authority (FSA No. 497263). 
The VT Group is also regulated by the Australian Securities and Investment Commission; the Financial Markets Authority in New Zealand; the FSB, South Africa and is registered with Fintrac Canada. VT is a member of the Johannesburg Stock Exchange. VT has offices in Toronto, Montreal, New York, London, Cape Town, Auckland and Sydney.</pre>
</body></html>