C++ MFC

Moderators: Lundin
Number of threads: 3354
Number of posts: 9032

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Error using CCriticalSection? Posted by shine_on on 1 Apr 2003 at 5:18 PM
I'm getting an error "error C2079: '_m' uses undefined class 'CCriticalSection'" when I try to run the following:

class CCriticalSection;

class myClass{

CCriticalSection m_lock;

}


Can anyone help me out?
TIA
Report
Re: Error using CCriticalSection? Posted by shine_on on 1 Apr 2003 at 5:20 PM
: I'm getting an error "error C2079: '_m' uses undefined class 'CCriticalSection'" when I try to run the following:
:
: class CCriticalSection;
:
: class myClass{
:
: CCriticalSection m_lock;
:
: }
:
:
: Can anyone help me out?
: TIA
:

Report
Re: Error using CCriticalSection? Posted by shine_on on 1 Apr 2003 at 5:21 PM
Its ok, forgot to include afxmt.h :)


: : I'm getting an error "error C2079: '_m' uses undefined class 'CCriticalSection'" when I try to run the following:
: :
: : class CCriticalSection;
: :
: : class myClass{
: :
: : CCriticalSection m_lock;
: :
: : }
: :
: :
: : Can anyone help me out?
: : TIA
: :
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.