Click here to Skip to main content
15,905,616 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVISTA Pin
VC_RYK27-Jun-07 20:51
VC_RYK27-Jun-07 20:51 
AnswerRe: VISTA Pin
Hans Dietrich27-Jun-07 21:26
mentorHans Dietrich27-Jun-07 21:26 
QuestionOnCtlColor Pin
sudheee27-Jun-07 20:50
sudheee27-Jun-07 20:50 
AnswerRe: OnCtlColor Pin
KarstenK27-Jun-07 21:00
mveKarstenK27-Jun-07 21:00 
GeneralRe: OnCtlColor Pin
sudheee27-Jun-07 22:57
sudheee27-Jun-07 22:57 
GeneralRe: OnCtlColor Pin
KarstenK27-Jun-07 23:12
mveKarstenK27-Jun-07 23:12 
AnswerRe: OnCtlColor Pin
alias_rizwan28-Jun-07 0:26
alias_rizwan28-Jun-07 0:26 
QuestionThread Question Pin
Programm3r27-Jun-07 20:47
Programm3r27-Jun-07 20:47 
Hi all,

Lets say one has created a thread using _beginthread() and now that thread is active and running. Now one wants to pass arguments to that thread function, but remember that the thread was already created. Now ... how can one (if it is possible) call that thread function, without calling _beginthread() again.
I.E
int callThreadFunc()
{
 // call thread function without calling _beginthrad
 // or can one just dio a nornal function call??? 
}
void myThread(void* a)
{
 while (1)
 {
   // do some stuff - not relevent
   Sleep(1000);
 } 
}
void main()
{
 _beginthread(myThread, NULL, 0); // creating the thread
 ...
}


Many Thanks
Regards,


The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

My Blog: ^_^

AnswerRe: Thread Question Pin
KarstenK27-Jun-07 20:57
mveKarstenK27-Jun-07 20:57 
GeneralRe: Thread Question Pin
Programm3r27-Jun-07 21:00
Programm3r27-Jun-07 21:00 
AnswerRe: Thread Question Pin
Cedric Moonen27-Jun-07 21:16
Cedric Moonen27-Jun-07 21:16 
QuestionRe: Thread Question Pin
Programm3r27-Jun-07 22:02
Programm3r27-Jun-07 22:02 
AnswerRe: Thread Question Pin
Roger Stoltz27-Jun-07 21:55
Roger Stoltz27-Jun-07 21:55 
GeneralRe: Thread Question Pin
Programm3r27-Jun-07 22:03
Programm3r27-Jun-07 22:03 
QuestionMulti threading in c++ Pin
role127-Jun-07 20:27
role127-Jun-07 20:27 
QuestionStreach or skew a bitmap to fit to resizing button size Pin
robshere27-Jun-07 20:06
robshere27-Jun-07 20:06 
AnswerRe: Streach or skew a bitmap to fit to resizing button size Pin
KarstenK27-Jun-07 20:53
mveKarstenK27-Jun-07 20:53 
QuestionRe: You need a ownerdrawn Button Pin
robshere29-Jun-07 2:00
robshere29-Jun-07 2:00 
AnswerRe: You need a ownerdrawn Button Pin
KarstenK29-Jun-07 2:18
mveKarstenK29-Jun-07 2:18 
QuestionHelp Needed !!! Pin
SelvaKr27-Jun-07 18:28
SelvaKr27-Jun-07 18:28 
AnswerRe: Help Needed !!! Pin
JudyL_MD28-Jun-07 2:38
JudyL_MD28-Jun-07 2:38 
GeneralRe: Help Needed !!! Pin
SelvaKr28-Jun-07 19:17
SelvaKr28-Jun-07 19:17 
GeneralRe: Help Needed !!! Pin
JudyL_MD29-Jun-07 2:27
JudyL_MD29-Jun-07 2:27 
QuestionHow to close a user created message box without effecting the background Pin
msr_codeproject27-Jun-07 18:26
msr_codeproject27-Jun-07 18:26 
AnswerRe: How to close a user created message box without effecting the background Pin
Joan M27-Jun-07 18:58
professionalJoan M27-Jun-07 18:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.