Thread question??
-
define this :
#define _WIN32_WINNT 0x400
in stdafx.h. What OS are you using?
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus Best wishes to Rexx[^]
-
york528 wrote:
error C2065: 'USES_CONVERSION' : undeclared identifier
See here.
york528 wrote:
error C2065: 'ReadDirectoryChangesW' : undeclared identifier
See here.
york528 wrote:
error C2065: 'm_list' : undeclared identifier
See here. What does any of what you posted have to do with threads?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Can you show your code and it seems you forgot to include header file or your program?
-
i expect that the threadFunction improperly tries to access the list object, etc which are own by the main thread. pass the this value to the param field of beginthread, then receive it inside your functionbloc and cast it to a main dialog pointer by wich you access things.
Our Philosophy, Mohammed Baqir Al Sadr
-
windows XP thank you so much #define _WIN32_WINNT 0x400 what's that for i am new and my English is not so good
Few APIs would be supported to specific OS. That's the OS version. Windows NT 4.0 -> _WIN32_WINNT =0x0400. The error is gone or not?
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus Best wishes to Rexx[^]
-
Few APIs would be supported to specific OS. That's the OS version. Windows NT 4.0 -> _WIN32_WINNT =0x0400. The error is gone or not?
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus Best wishes to Rexx[^]
-
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