Solved

CArray <void *, void*> parameter problem

Posted on 2001-07-04
1
535 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:David MacDonald
1 Comment
 
LVL 12

Accepted Solution

by:
migel earned 100 total points
ID: 6252849
Hi!
use referencies
 void GetDataGroups(CArray <void *, void *>& ptrDGroups); <<!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question