Click here to Skip to main content
15,892,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual Studio: Resources ID based on other resources ID Pin
Pascal_335-Jan-11 5:29
Pascal_335-Jan-11 5:29 
GeneralRe: Visual Studio: Resources ID based on other resources ID Pin
Roger Broomfield5-Jan-11 12:46
Roger Broomfield5-Jan-11 12:46 
GeneralRe: Visual Studio: Resources ID based on other resources ID Pin
Pascal_335-Jan-11 22:02
Pascal_335-Jan-11 22:02 
GeneralRe: Visual Studio: Resources ID based on other resources ID Pin
CPallini6-Jan-11 4:09
mveCPallini6-Jan-11 4:09 
GeneralRe: Visual Studio: Resources ID based on other resources ID Pin
Pascal_336-Jan-11 5:49
Pascal_336-Jan-11 5:49 
GeneralRe: Visual Studio: Resources ID based on other resources ID Pin
CPallini6-Jan-11 6:00
mveCPallini6-Jan-11 6:00 
QuestionProblem: ISAPI Extension Add custom header Pin
theoneneo244-Jan-11 22:47
theoneneo244-Jan-11 22:47 
QuestionProblem with WaitForSingleObject Pin
Amol Jaikar4-Jan-11 21:09
Amol Jaikar4-Jan-11 21:09 
CWinThread* m_pcThread1;
CWinThread* m_pcThread2;
int a1[100], a2[100],a3[200];
para* a;
int* a9;
para* b;
int* b9;
int* ptr = a3;
a = new para;
b = new para;
a->main_ptr = a1;
a->val = 1;
b->main_ptr = a2;
b->val = 0;
m_pcThread1 = AfxBeginThread(WorkerThreadProc,a,THREAD_PRIORITY_NORMAL,0,0,NULL);
m_pcThread2 = AfxBeginThread(WorkerThreadProc,b,THREAD_PRIORITY_NORMAL,0,0,NULL);
// MessageBox("Thread Started");
// if(WaitForSingleObject(m_pcThread1, INFINITE) == WAIT_OBJECT_0)
WaitForSingleObject(m_pcThread1,INFINITE);
WaitForSingleObject(m_pcThread2,INFINITE);
a9 = a->main_ptr; b9 = b->main_ptr;
for(int i = 0; i<100;i++)
{
*ptr = *a9;
*(ptr+100) = *b9;
ptr++;
a9++;
b9++;
}
MessageBox("Calculated");
------------------------------------------------------------

Above code is not waiting for thread to complete. I can not understand
what is the problem? please help me
AnswerRe: Problem with WaitForSingleObject Pin
Rajesh R Subramanian4-Jan-11 21:20
professionalRajesh R Subramanian4-Jan-11 21:20 
AnswerRe: Problem with WaitForSingleObject Pin
Richard MacCutchan4-Jan-11 21:27
mveRichard MacCutchan4-Jan-11 21:27 
AnswerRe: Problem with WaitForSingleObject Pin
bleedingfingers4-Jan-11 21:29
bleedingfingers4-Jan-11 21:29 
GeneralRe: Problem with WaitForSingleObject Pin
CPallini4-Jan-11 21:31
mveCPallini4-Jan-11 21:31 
GeneralRe: Problem with WaitForSingleObject Pin
Code-o-mat5-Jan-11 4:33
Code-o-mat5-Jan-11 4:33 
AnswerRe: Problem with WaitForSingleObject Pin
Aescleal5-Jan-11 7:25
Aescleal5-Jan-11 7:25 
JokeRe: Problem with WaitForSingleObject Pin
Code-o-mat5-Jan-11 7:59
Code-o-mat5-Jan-11 7:59 
AnswerRe: Problem with WaitForSingleObject Pin
CPallini4-Jan-11 21:30
mveCPallini4-Jan-11 21:30 
AnswerRe: Problem with WaitForSingleObject Pin
Arman S.4-Jan-11 21:32
Arman S.4-Jan-11 21:32 
AnswerRe: Problem with WaitForSingleObject Pin
Frank Seidler4-Jan-11 21:34
Frank Seidler4-Jan-11 21:34 
QuestionDialogBox Control disappear Pin
MsmVc4-Jan-11 18:37
MsmVc4-Jan-11 18:37 
QuestionRe: DialogBox Control disappear Pin
Cool_Dev4-Jan-11 19:39
Cool_Dev4-Jan-11 19:39 
AnswerRe: DialogBox Control disappear Pin
MsmVc4-Jan-11 19:47
MsmVc4-Jan-11 19:47 
GeneralRe: DialogBox Control disappear Pin
Cool_Dev4-Jan-11 19:50
Cool_Dev4-Jan-11 19:50 
GeneralRe: DialogBox Control disappear Pin
MsmVc4-Jan-11 19:53
MsmVc4-Jan-11 19:53 
RantRe: DialogBox Control disappear Pin
Cool_Dev4-Jan-11 19:59
Cool_Dev4-Jan-11 19:59 
GeneralRe: DialogBox Control disappear Pin
MsmVc4-Jan-11 20:06
MsmVc4-Jan-11 20:06 

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.