Home > Error C2248 > Error C2248 Clist

Error C2248 Clist


Member Login Remember Me Forgot your password? Similar topics Violation of PRIMARY KEY constraint..how to solve this error? Browse other questions tagged visual-studio-2010 visual-c++ or ask your own question. Now I go to the windows group mfc. http://megavoid.net/error-c2248/error-c2248-c.html

It takes just 2 minutes to sign up (and it's free!). Unfortunately, the (bad) compiler doesn't give you back-trace of this error. See the welcome message posted twice per week in comp.lang.c++ under the subject "Welcome to comp.lang.c++! mfc operator-overloading clist share|improve this question edited Aug 14 '13 at 23:11 IInspectable 15.7k21957 asked Aug 14 '13 at 20:58 Mudkip 108116 add a comment| 1 Answer 1 active oldest votes

Error C2248 Clist

Sign Up Now! QPipeDoc.cpp c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxtempl.h(776) : error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(562) : see declaration of 'CObject::operator =' visual-studio-2010 visual-c++ share|improve this question edited Apr 3 '13 at 18:34 asked Apr 2 '13 at 13:42 papiozo 114 You should reconsider your information-hiding as you have none... –bash.d Compiling...

Never write function(void) in C++. Is my teaching attitude wrong? asked 3 years ago viewed 1831 times active 3 years ago Related 0'CObject::CObject' : cannot access private member declared in class 'CObject'd:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxcoll.h0error C2248: 'CObject::CObject' : cannot access Even if i remove static, i get the same error.

Excellent. Edited : Here is the error tht I get : C:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxtempl.h(776) : error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' 1> c:\program They are all self-explanatory, unless you do not know C++ well enough. but as soon as I declare a CList of CCase in CDocument or CView, error pop ping out.

asked 3 years ago viewed 1233 times active 3 years ago Related 2"error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject'0error C2248: 'CObject::CObject' : cannot access private member ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vccomp/html/9f249b52-aeff-41a1-8a74-a52aa08c4fcf.htm "kwikius" ??????:11*********************@s48g2000cws.googleg roups.com... Not the answer you're looking for? Sign up now!

Copyright Quinstreet Inc. 2002-2016 418,505 Members | 2,618 Online Join Now login Ask Question Home Questions Articles Browse Topics Latest Top Members FAQ home > topics > c / http://forums.codeguru.com/showthread.php?509912-CList-for-user-Class Other generated code ............. Error C2248 Clist I use class wizard in vs2005 to write this class. more hot questions question feed lang-cpp about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

Mar 2 '07 #9 P: n/a fcvcnet Thank you . his comment is here For serialization, you may want to consider XML (with the support of some helper class/library, like CMarkup). Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vccomp/html/9f249b52-aeff-41a1-8a74-a52aa08c4fcf.htm "kwikius" <> ??????:... > On 27 Feb, 05:49, "fcvcnet" <> wrote: > > > <...> > > Hint, > > Try looking up CObject in the VC8 docs.

What is the definition of function in ZF/ZFC? What is the error message? loop through the vector object, saving the elements, one by one. this contact form I would not going for extra work right now, thus CList look like a safe option.

So in my copy-constructor i should copy all elements of my list to my copied list (in a loop) ? –papiozo Apr 4 '13 at 12:37 Yes you will Correct me if I'm wrong. 3) some other serialization techniques like XML can be a better option. How to determine enemy ammo levels Stopping time, by speeding it up inside a bubble Should I serve jury duty when I have no respect for the judge?

If i'm using , should i: i.

When attempting to make copies of c1, that item in red causes the compiler to emit an error because the compiler is expecting the copy and assign operators of CList to Solved: error: C2248: 'QObject::QObject' : cannot ... ► August (4) ► July (3) ► June (1) ► May (1) ► April (2) ► March (1) ► February (2) ► January (2) If you want to use CList you can do one of the following: 1) Create your own class, inherited from CList. Giovanni Friday, March 18, 2011 10:02 AM 0 Sign in to vote 1) I'm not sure that MFC serialization is a good mechanism Could you explain on the basis of

return *this; } but what you mean by adding "copy-constructor" ? Best bets for as the solution: CList < CItem* > m_oItem; CList *m_poItem; Use or implement your own collection. I didn't realise it was that bad! >>This looks horribly like widows code, so you'd better post to windowsdevelopment group Yes , it is windows code, but I think it have http://megavoid.net/error-c2248/error-c2248-fstream.html Add copy constructor and operator =.

Are there other solutions that may solve this problems? Its has no dependence over static keyword. Where am I going wrong? I realize that there are other possibilities for solving this error, such as using pointers, but I really looking for a solution that fits exactly in the code that I provided.

You'll be able to ask questions about coding or chat with the community and help others. There are several C++ libraries that offer XML support, e.g. faq how to solve this error P: n/a fcvcnet Hi, I write a class class CSegment { public: CSegment(void); public: ~CSegment(void); public: CArray< CList< CPoint, CPoint& >, CList< CPoint, CPoint& >& This class contains a CList object, which is inherited from CObject.