In many circumstances get_Count takes the address of a long. For example, getting the number of occurences:
long iNumOccs ; hRes = pOccs->get_Count(&iNumOccs);
But I can't find out what get_XCount (for rectangular patterns) takes as a parameter.
CComPtr<RectangularPatternFeature> pRectPattern ; pRectPatList->get_Item (CComVariant(1),&pRectPattern) ; ????? iXCount ; // what type is this ??? pRectPattern->get_XCount (&iXCount) ;
What type should iXCount be?
Solved! Go to Solution.
Solved by philippe.leefsma. Go to Solution.
That's a Parameter object.
Regards,
Philippe.
______________________________________________________________
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!
Ok, found it:
CComPtr<RectangularPatternFeature> pRectPattern ; pRectPatList->get_Item (CComVariant(1),&pRectPattern) ; //CComPtr<Parameter> iXCount ; either this or... ParameterPtr iXCount ; // ...this pRectPattern->get_XCount (&iXCount) ;
Thanks