Reputation: 1287
in my project im having manager class and calc class. calc class derived from CWinThread. and manager have a pointer to calc class. how do i using AfxBeginThread and where? note im new in mfc so im sorry if there is mistakes. thanks
Upvotes: 0
Views: 5357
Reputation: 38766
I consider this an MFC tutorial kind of question.
Therefore, let me point you to www.codeproject.org, which is one of the better sites for MFC resources. (Indeed I think there are some really excellent articles and code examples there.)
For example, you can find an intro on MFC threads in the article 'Threads with MFC'.
Upvotes: 1
Reputation: 122381
You should be able to call Calc::CreateThread()
. You need to override the CWinThread::Run()
method to implement your functionality, and you might also want to override the CWinThread::InitInstance()
and CWinThread::ExitInstance()
methods too.
Upvotes: 1