Link to home
Start Free TrialLog in
Avatar of David MacDonald
David MacDonaldFlag for Canada

asked on

CArray <void *, void*> parameter problem

Hi all,
    I have this little fct. :
   
    void GetDataGroups(CArray<void*, void*> ptrDGroups);

    I fill my array in a loop:

    m_aPtrValidRefWaveForm.SetAtGrow(wNumberOfDGroup,
     hDGroup);
    (hDGroup is a void ptr.)

    And i implement my fct like this:


    void GetDataGroups(CArray <void *, void *> ptrDGroups)
{
     void *hDGroup = NULL;
     gdata_typeFDD refGDataFDD;

     for(int x = 0; x < ptrDGroups.GetSize(); x++)
     {
          hDGroup = ptrDGroups.GetAt(x);
          tvapi_DGroupGetCopy(hDGroup,
                &refGDataFDD);
     }
}

Is there a special way to have a CArray parameter because the compiler gives me an error:

C:\Tomoview 1.4R8\TVM\DovetailAutomaticAnalysis\DovetailAutomaticAnalysisDlg.cpp(308) : error C2664: 'GetDataGroups' : cannot convert parameter 1 from 'class CArray<void *,void *>' to 'class CArray<void *,void *>'
        No copy constructor available for class 'CArray<void *,void *>'


Thanks for the help...

Cheers
ASKER CERTIFIED SOLUTION
Avatar of migel
migel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial