how to implemnt the threads in VC++?
-
i don want dis....how to initialses and create the threads...can u provide me some examples at beg level? Thx NooR
-
yup i hve seen in msdn ..but i don get the examples..kindly will u provide me sum examples? thx NooR
Noor Akhter wrote:
..but i don get the examples..kindly will u provide me sum examples?
checkout http://www.codeproject.com/threads/crtmultithreading.asp http://www.codeproject.com/threads/Threads\_1.asp
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
can v call local function in the thread..if it possible its not runing in my program..now wat to do? NooR
-
yup i hve seen in msdn ..but i don get the examples..kindly will u provide me sum examples? thx NooR
-
NO!!! Write "CWinThread" in the Search Box up von den CP-Website and look yourself. I you want to learn programming you gotta learn this.:doh: Greetings from Germany
Nice idea.....i did man.....but i don want bulitin function..i want to implemnt my own function..n how can i do this? thx NooR
-
Hi,can anyone help me out how to implement the threads?in the beginners level. Regards NooR
-
can v call local function in the thread..if it possible its not runing in my program..now wat to do? NooR
I hope this helpful for you HANDLE thread;
void CYourClass::Runthread() { DWORD ThreadID; thread=CreateThread(NULL,0,ThreadFunc,this,0,&ThreadID); } void ThreadFunc( LPVOID lpv ) { CYourClass* m_Class = (CYourClass*) lpv; m_Class->Function(); } void CYourClass::Function() { MessageBox("Test"); }
_**
**_
whitesky
-
i don want dis....how to initialses and create the threads...can u provide me some examples at beg level? Thx NooR
The two articles I provided are at the elementary level. What part is troubling you? Threads are usually not something to be tackled by a beginner.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
Nice idea.....i did man.....but i don want bulitin function..i want to implemnt my own function..n how can i do this? thx NooR
Noor Akhter wrote:
Nice idea.....i did man.....but i don want bulitin function..i want to implemnt my own function..n how can i do this?
you want to create you own threading function... is that right!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Noor Akhter wrote:
Nice idea.....i did man.....but i don want bulitin function..i want to implemnt my own function..n how can i do this?
you want to create you own threading function... is that right!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
yup i want to create my own threads...n i cal the local function in it....is it possible? do reply////// NooR