Solved

CArray <void *, void*> parameter problem

Posted on 2001-07-04
1
524 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 124
Separate files macro - Errors on larger data set 18 65
Process filename extension 3 172
fizzArray2 challenge 1 72
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

911 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now