CObject Private method access error


N

NKH

Hi,

I am trying to recompile application that has been developed in VC++
6.0 with VC++2005..
While compiling, I'm getting the following error..


error C2248: 'CObject::CObject' : cannot access private member declared

in class 'CObject'
1> c:\program files\microsoft visual studio
8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject'
1> c:\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
'CException::CException(const CException &)'


Our application have a custom exception class derived from CException
which in turn implements a copy constructor


CSException (const CSException &ToCopy);


The code from which this exception is called as below..


throw CSException (Msg, __FILE__, __LINE__);


Please let me know what could be wrong here and how I can overcome
this..


Thanks,
Nishant
 
Ad

Advertisements

D

David Wilkinson

NKH said:
Hi,

I am trying to recompile application that has been developed in VC++
6.0 with VC++2005..
While compiling, I'm getting the following error..

Nishant:

Please don't multi-post. See reply in MFC group.

David Wilkinson
 
N

NKH

Hi,
I'm sorry..I thought this group would be more appropriate than MFC in
VC++ 6.0
Thanks,
Nishant
 
Ad

Advertisements

D

David Wilkinson

NKH said:
Hi,
I'm sorry..I thought this group would be more appropriate than MFC in
VC++ 6.0

Nishant:

microsoft.public.vc.mfc is the MFC newsgroup, not just for VC6. CObject
is an MFC class.

But it is not so important which group you use, just that you do not
multi-post. Most people who can answer these questions read all the
VC-related groups.

If you feel you must target more than one group, then cross-post, never
multi-post.

And you might think about not top-posting ....

David Wilkinson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top