Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
Jijo.Raj6-Dec-08 11:06
Jijo.Raj6-Dec-08 11:06 
GeneralRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
aliusam7-Dec-08 22:23
aliusam7-Dec-08 22:23 
AnswerRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
Richard Andrew x646-Dec-08 15:13
professionalRichard Andrew x646-Dec-08 15:13 
GeneralRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
aliusam7-Dec-08 22:42
aliusam7-Dec-08 22:42 
AnswerRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
Snorri Kristjansson7-Dec-08 0:44
professionalSnorri Kristjansson7-Dec-08 0:44 
GeneralRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
aliusam7-Dec-08 22:34
aliusam7-Dec-08 22:34 
GeneralRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
Snorri Kristjansson8-Dec-08 5:57
professionalSnorri Kristjansson8-Dec-08 5:57 
GeneralRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
aliusam9-Dec-08 11:42
aliusam9-Dec-08 11:42 
hiiii
thank you all for the help, now it is working really great.
but let me make things clear so if someone had the same problem can see where the error, cause the message you get from the compiler is not even close from the problem.

let say you have a class:

class BB
{
public
BB();
virtual ~BB();

CArray<cstring> AA; // or even a CAtringArray
BB &operator=(const BB &otherBB) // without this operator you cant add a CArray or CStringArray
}


Snorri wrote:
Probably the class you declare the CArray in already has one? Or at least you are using '=' somewhere in your code for an instance of that class


when i read that i new the problem, it is in my class, see no class has no operator'=' (that if you used it in the program), so if you dont define one, the compiler will, and it will do it by calling each member's '=' operator, and if the operator is not existed then it stops and gives an error, evry one knows that but the error explanation dont even mentions it, and when i searched i didnot find an answer, so one can be drifted away. thanks all again

regards

Ali Usam AlCherchefchi

QuestionProcess Pin
messages6-Dec-08 3:21
messages6-Dec-08 3:21 
AnswerRe: Process Pin
Jijo.Raj6-Dec-08 4:36
Jijo.Raj6-Dec-08 4:36 
AnswerRe: Process Pin
Mark Salsbery6-Dec-08 6:02
Mark Salsbery6-Dec-08 6:02 
Questioncreate x64 support ocx in visual c++ 6 Pin
samira forooghi5-Dec-08 23:18
samira forooghi5-Dec-08 23:18 
AnswerRe: create x64 support ocx in visual c++ 6 Pin
Hamid_RT6-Dec-08 4:16
Hamid_RT6-Dec-08 4:16 
AnswerRe: create x64 support ocx in visual c++ 6 Pin
Hadi Dayvary6-Dec-08 8:11
professionalHadi Dayvary6-Dec-08 8:11 
GeneralRe: create x64 support ocx in visual c++ 6 [modified] Pin
samira forooghi6-Dec-08 20:00
samira forooghi6-Dec-08 20:00 
AnswerRe: create x64 support ocx in visual c++ 6 Pin
Hamid_RT7-Dec-08 17:50
Hamid_RT7-Dec-08 17:50 
QuestionHow can i get text from CRichEditCtrl Pin
york5285-Dec-08 19:36
york5285-Dec-08 19:36 
AnswerRe: How can i get text from CRichEditCtrl Pin
Code-o-mat6-Dec-08 2:14
Code-o-mat6-Dec-08 2:14 
GeneralRe: How can i get text from CRichEditCtrl Pin
york5286-Dec-08 4:08
york5286-Dec-08 4:08 
GeneralRe: How can i get text from CRichEditCtrl Pin
Code-o-mat6-Dec-08 4:53
Code-o-mat6-Dec-08 4:53 
GeneralRe: How can i get text from CRichEditCtrl Pin
york52810-Dec-08 17:57
york52810-Dec-08 17:57 
QuestionHow to write(or create) subkey under a key which only by modified by the Admin? Pin
kcynic5-Dec-08 18:55
kcynic5-Dec-08 18:55 
AnswerRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
Randor 5-Dec-08 20:36
professional Randor 5-Dec-08 20:36 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
kcynic5-Dec-08 20:48
kcynic5-Dec-08 20:48 
GeneralRe: How to write(or create) subkey under a key which only by modified by the Admin? Pin
Randor 5-Dec-08 21:28
professional Randor 5-Dec-08 21:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.