<DIV>
<DIV>hello,</DIV>
<DIV>I try to create an array of pointers at runtime using a function like:</DIV>
<DIV>int NumberOfRegions=myfuntion(...);</DIV>
<DIV>and then,</DIV>
<DIV>typedef&nbsp; itk::Statistics::ListSample&lt; MeasurementVectorType &gt; SampleType;</DIV>
<DIV>SampleType::Pointer SRGSample[NumberOfRegions];</DIV>
<DIV>&nbsp;</DIV>
<DIV>this code compile well with gcc but with visual C++ I have an error:</DIV>
<DIV>error C2057: expected constant expression</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for help</DIV>
<DIV>&nbsp;</DIV>
<DIV>lagaffe</DIV></DIV><p>
                <hr size=1> 
Découvrez le nouveau Yahoo! Mail : <font color="red">250 Mo d'espace</font> de stockage pour vos mails !<br><a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/evt=25917/*http://fr.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_250/default/*http://fr.promotions.yahoo.com/mail/creer28.html">Créez votre Yahoo! Mail</a>