Message 1 of 4
AcArray Problem
Not applicable
04-17-2003
11:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In my header file, I have:
protected:
typedef AcArray AcDbEntityArray;
void GetIntersectObjects(AcDbEntityArray* entArray);
in my implementation file I have:
SomeFunc()
{
....
AcDbEntityArray* entArray=new AcDbEntityArray;
GetIntersectObjects(entArray);
....
}
void CDlgCircuits::GetIntersectObjects(AcDbEntityArray* entArray)
{
acutPrintf("\nLederhosen!");
}
Why am I getting this output, and how can I fix it?
--------------------Configuration: testarrayui - Win32
Debug--------------------
Compiling...
DlgCircuits.cpp
z:\objectarx 2000\inc\acarray.h(315) : error C2248: 'AcDbEntity::AcDbEntity'
: cannot access protected member declared in class 'AcDbEntity'
z:\objectarx 2000\inc\dbmain.h(1547) : see declaration of
'AcDbEntity::AcDbEntity'
e:\program files\microsoft visual studio\vc98\include\map(26) :
while compiling class-template member function '__thiscall AcArray
AcDbEntity,class AcArrayMemCopyReallocator
>::AcArray
mCopyReallocator >(int,int)'
z:\objectarx 2000\inc\acarray.h(315) : error C2248: 'new[]' : cannot access
private member declared in class 'AcDbObject'
z:\objectarx 2000\inc\dbmain.h(1000) : see declaration of 'new[]'
e:\program files\microsoft visual studio\vc98\include\map(26) :
while compiling class-template member function '__thiscall AcArray
AcDbEntity,class AcArrayMemCopyReallocator
>::AcArray
mCopyReallocator >(int,int)'
z:\objectarx 2000\inc\acarray.h(315) : error C2248: 'delete[]' : cannot
access private member declared in class 'AcDbObject'
z:\objectarx 2000\inc\dbmain.h(1001) : see declaration of 'delete[]'
e:\program files\microsoft visual studio\vc98\include\map(26) :
while compiling class-template member function '__thiscall AcArray
AcDbEntity,class AcArrayMemCopyReallocator
>::AcArray
mCopyReallocator >(int,int)'
Error executing cl.exe.
dbrmjstestarrayui.arx - 3 error(s), 0 warning(s)
protected:
typedef AcArray
void GetIntersectObjects(AcDbEntityArray* entArray);
in my implementation file I have:
SomeFunc()
{
....
AcDbEntityArray* entArray=new AcDbEntityArray;
GetIntersectObjects(entArray);
....
}
void CDlgCircuits::GetIntersectObjects(AcDbEntityArray* entArray)
{
acutPrintf("\nLederhosen!");
}
Why am I getting this output, and how can I fix it?
--------------------Configuration: testarrayui - Win32
Debug--------------------
Compiling...
DlgCircuits.cpp
z:\objectarx 2000\inc\acarray.h(315) : error C2248: 'AcDbEntity::AcDbEntity'
: cannot access protected member declared in class 'AcDbEntity'
z:\objectarx 2000\inc\dbmain.h(1547) : see declaration of
'AcDbEntity::AcDbEntity'
e:\program files\microsoft visual studio\vc98\include\map(26) :
while compiling class-template member function '__thiscall AcArray
AcDbEntity,class AcArrayMemCopyReallocator
>::AcArray
z:\objectarx 2000\inc\acarray.h(315) : error C2248: 'new[]' : cannot access
private member declared in class 'AcDbObject'
z:\objectarx 2000\inc\dbmain.h(1000) : see declaration of 'new[]'
e:\program files\microsoft visual studio\vc98\include\map(26) :
while compiling class-template member function '__thiscall AcArray
AcDbEntity,class AcArrayMemCopyReallocator
>::AcArray
z:\objectarx 2000\inc\acarray.h(315) : error C2248: 'delete[]' : cannot
access private member declared in class 'AcDbObject'
z:\objectarx 2000\inc\dbmain.h(1001) : see declaration of 'delete[]'
e:\program files\microsoft visual studio\vc98\include\map(26) :
while compiling class-template member function '__thiscall AcArray
AcDbEntity,class AcArrayMemCopyReallocator
>::AcArray
Error executing cl.exe.
dbrmjstestarrayui.arx - 3 error(s), 0 warning(s)