Click here to Skip to main content
15,886,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEnumdisplaysetting return different display orientation in the same degree with different graphic Pin
cedricvictor1-Jan-15 5:02
cedricvictor1-Jan-15 5:02 
AnswerRe: Enumdisplaysetting return different display orientation in the same degree with different graphic Pin
Albert Holguin5-Jan-15 6:45
professionalAlbert Holguin5-Jan-15 6:45 
GeneralRe: Enumdisplaysetting return different display orientation in the same degree with different graphic Pin
cedricvictor5-Jan-15 18:20
cedricvictor5-Jan-15 18:20 
GeneralRe: Enumdisplaysetting return different display orientation in the same degree with different graphic Pin
Albert Holguin6-Jan-15 7:04
professionalAlbert Holguin6-Jan-15 7:04 
GeneralRe: Enumdisplaysetting return different display orientation in the same degree with different graphic Pin
Mike Nordell2-Feb-15 10:56
Mike Nordell2-Feb-15 10:56 
Joke): Pin
JayBoyy1-Jan-15 1:24
JayBoyy1-Jan-15 1:24 
AnswerRe: Academic Question on Multi Core Pragramming Pin
Richard MacCutchan1-Jan-15 4:51
mveRichard MacCutchan1-Jan-15 4:51 
AnswerRe: Academic Question on Multi Core Pragramming Pin
Babu_Abdulsalam1-Jan-15 17:04
Babu_Abdulsalam1-Jan-15 17:04 
C++



int g_x = 0;
DWORD WINAPI Add(void* p) //p unused parameter
{
g_x++;
}
void main()
{
HANDLE m_hArr[10];
int i = 0;
for( ; i < 10; i++ )
{
CreateThread( NULL,0,Add,NULL,0,&m_hArr[i]);
}
//Wait for all the 10 threads to complete its execution
::WaitForMultipleObjects(10,m_hArr,TRUE,INDEFENITE);

//Now print the result.You expect 10 but it may not be... Smile | :)
cout<<"g_x = "<
AnswerRe: Academic Question on Multi Core Pragramming Pin
Babu_Abdulsalam1-Jan-15 17:07
Babu_Abdulsalam1-Jan-15 17:07 
AnswerRe: Academic Question on Multi Core Pragramming Pin
Babu_Abdulsalam1-Jan-15 17:09
Babu_Abdulsalam1-Jan-15 17:09 
Joke: Pin
Scholar2471-Jan-15 0:56
Scholar2471-Jan-15 0:56 
GeneralRe: Multi-Core Programming Pin
Richard MacCutchan1-Jan-15 4:45
mveRichard MacCutchan1-Jan-15 4:45 
GeneralRe: Multi-Core Programming Pin
OriginalGriff1-Jan-15 5:39
mveOriginalGriff1-Jan-15 5:39 
GeneralRe: Multi-Core Programming Pin
Richard MacCutchan1-Jan-15 5:57
mveRichard MacCutchan1-Jan-15 5:57 
QuestionYAAQ Yet another academic question - overloaded or "strongly typed"? Pin
Vaclav_31-Dec-14 14:10
Vaclav_31-Dec-14 14:10 
AnswerRe: YAAQ Yet another academic question - overloaded or "strongly typed"? Pin
Richard MacCutchan31-Dec-14 23:03
mveRichard MacCutchan31-Dec-14 23:03 
GeneralRe: YAAQ Yet another academic question - overloaded or "strongly typed"? Pin
Vaclav_14-Jan-15 6:02
Vaclav_14-Jan-15 6:02 
GeneralRe: YAAQ Yet another academic question - overloaded or "strongly typed"? Pin
Richard MacCutchan14-Jan-15 6:19
mveRichard MacCutchan14-Jan-15 6:19 
GeneralRe: YAAQ Yet another academic question - overloaded or "strongly typed"? Pin
Mike Nordell2-Feb-15 11:07
Mike Nordell2-Feb-15 11:07 
QuestionEnabling/Disabling a CMFCRibbonButton Pin
Richard Andrew x6430-Dec-14 18:24
professionalRichard Andrew x6430-Dec-14 18:24 
AnswerRe: Enabling/Disabling a CMFCRibbonButton Pin
Richard MacCutchan30-Dec-14 22:06
mveRichard MacCutchan30-Dec-14 22:06 
GeneralRe: Enabling/Disabling a CMFCRibbonButton Pin
Richard Andrew x6431-Dec-14 7:38
professionalRichard Andrew x6431-Dec-14 7:38 
GeneralRe: Enabling/Disabling a CMFCRibbonButton Pin
Richard MacCutchan31-Dec-14 22:55
mveRichard MacCutchan31-Dec-14 22:55 
GeneralRe: Enabling/Disabling a CMFCRibbonButton Pin
Richard Andrew x641-Jan-15 8:28
professionalRichard Andrew x641-Jan-15 8:28 
GeneralRe: Enabling/Disabling a CMFCRibbonButton Pin
Richard MacCutchan1-Jan-15 22:17
mveRichard MacCutchan1-Jan-15 22:17 

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.