开发者

help using CWinThread in MFC

开发者 https://www.devze.com 2023-02-03 09:15 出处:网络
in my projectim having manager class and calc class. calc clas开发者_C百科s derived from CWinThread. and manager have a pointer to calc class. how do i using AfxBeginThread and where?

in my project im having manager class and calc class. calc clas开发者_C百科s 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


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.


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'.

0

精彩评论

暂无评论...
验证码 换一张
取 消