Thread question??
-
Wow you have some serious issues!!!
hINTModuleState wrote:
CListCtrl m_list; // static UINT ThreadProc(LPVOID pParam) { CThreadQuestionDlg* pMe = reinterpret_cast(pParam); pMe->m_list.DeleteAllItems(); /*This is the case number 1*/ //m_list.DeleteAllItems(); /*This is the case number 2*/ return 0; } void StartThread() { AfxBeginThread(ThreadProc, this); }
Uncommenting second case will lead to compiling error because ThreadProc is a static function and a static function can only access static members of a class. Since m_list is not a static variable you cannot access it directly from with the function. For you profiling needs try http://www.codeproject.com/KB/datetime/perftimer.aspx[^] Saurabh
yes apparently i have serious issues. i'd better start find a book or pdf and learn all the keywords and langage basis before making any judgement on any thing. thank you for the profiler link.
Our Philosophy, Mohammed Baqir Al Sadr
-
No comment.
Our Philosophy, Mohammed Baqir Al Sadr
-
problem solved with #define _WIN32_WINNT 0x400 thank you for help me so much time and give me a lot usful advises
It seems your problem solved and I arrived late,but I glad it solved. :-D