Solved

CArray <void *, void*> parameter problem

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

706 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

20 Experts available now in Live!

Get 1:1 Help Now