David MacDonald
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.Set AtGrow(wNu mberOfDGro up,
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(hDGrou p,
&refGDataFDD);
}
}
Is there a special way to have a CArray parameter because the compiler gives me an error:
C:\Tomoview 1.4R8\TVM\DovetailAutomati cAnalysis\ DovetailAu tomaticAna lysisDlg.c pp(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
I have this little fct. :
void GetDataGroups(CArray<void*
I fill my array in a loop:
m_aPtrValidRefWaveForm.Set
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(hDGrou
&refGDataFDD);
}
}
Is there a special way to have a CArray parameter because the compiler gives me an error:
C:\Tomoview 1.4R8\TVM\DovetailAutomati
No copy constructor available for class 'CArray<void *,void *>'
Thanks for the help...
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.