Click here to Skip to main content
15,909,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question regarding FsContext Pin
Randor 6-Dec-08 17:04
professional Randor 6-Dec-08 17:04 
GeneralRe: Question regarding FsContext Pin
Green Fuze6-Dec-08 22:54
Green Fuze6-Dec-08 22:54 
GeneralRe: Question regarding FsContext Pin
Randor 7-Dec-08 19:18
professional Randor 7-Dec-08 19:18 
GeneralRe: Question regarding FsContext Pin
Green Fuze6-Dec-08 14:59
Green Fuze6-Dec-08 14:59 
QuestionDoes PeekMessage() always cause an infinite loop? Pin
Joseph Marzbani6-Dec-08 9:50
Joseph Marzbani6-Dec-08 9:50 
AnswerRe: Does PeekMessage() always cause an infinite loop? Pin
Code-o-mat6-Dec-08 10:07
Code-o-mat6-Dec-08 10:07 
AnswerRe: Does PeekMessage() always cause an infinite loop? Pin
Randor 6-Dec-08 11:13
professional Randor 6-Dec-08 11:13 
Questioni can't add a CArray member to a class !!! error c2248 !!! Pin
aliusam6-Dec-08 6:44
aliusam6-Dec-08 6:44 
my program works fine, untill i tried to add some feature.
i added a " CArray<CString> AA " to my class in the header file and the code no longer compiles, i did not refrence the variable yet and it gives me a function related error, here is the error:

1>D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxtempl.h(272) : error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'
1> D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afx.h(554) : see declaration of 'CObject::operator ='
1> D:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afx.h(524) : see declaration of 'CObject'
1> This diagnostic occurred in the compiler generated function 'CArray<TYPE> &CArray<TYPE>::operator =(const CArray<TYPE> & )'
1> with
1> [
1> TYPE=CString
1> ]

if i comment out the line " CArray<CString> AA " the code compiles with no problem, i am using CArray in other parts in the program but not as members, they are created inside functions and they work fine

why is the error and what can i do about it?? i want to read a list from a text file that a user saves

Ali Usam AlCherchefchi

modified on Saturday, December 6, 2008 1:16 PM
AnswerRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
Jijo.Raj6-Dec-08 9:33
Jijo.Raj6-Dec-08 9:33 
GeneralRe: i can't add a CArray member to a class !!! error c2248 !!! Pin
aliusam6-Dec-08 10:56
aliusam6-Dec-08 10:56 
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 
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 

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.