Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCScrollView Pin
karmendra_js28-Sep-05 21:09
karmendra_js28-Sep-05 21:09 
AnswerRe: CScrollView Pin
Mircea Puiu28-Sep-05 22:01
Mircea Puiu28-Sep-05 22:01 
AnswerRe: CScrollView Pin
followait28-Sep-05 22:38
followait28-Sep-05 22:38 
AnswerRe: CScrollView Pin
vikas amin29-Sep-05 3:09
vikas amin29-Sep-05 3:09 
Questionerror C2664 with InterlockedExchangePointer Pin
Boaz V28-Sep-05 20:51
Boaz V28-Sep-05 20:51 
AnswerRe: error C2664 with InterlockedExchangePointer Pin
Boaz V28-Sep-05 22:16
Boaz V28-Sep-05 22:16 
QuestionShChangeNotifyRegister Pin
ragavan28-Sep-05 20:44
ragavan28-Sep-05 20:44 
QuestionMFC-App and Hyper-Threading Pin
tabor2528-Sep-05 20:24
tabor2528-Sep-05 20:24 
Hello,

maybe this can be of interest for someone: my multi-threading mfc-app crashed sometimes not reproducable on systems with hyper-threading active. So it would be very nice if i could tell my app to use only one cpu even if hyper-threading is active. After searching msdn and the internet for a method to do this, i found this api-function:

SetProcessAffinityMask(GetCurrentProcess(), 1);

The first parameter is the handle to the current process (my app) and the second parameter is a 32-bit value (mask) where every bit represents a cpu. Calling this function solved the problem of my hardly to reproduce exceptions.

Of course it does not fix the problem at the root because my app isn't HT-compatible at least, but now i have more time to learn about the difference between using HT and not using HT. Maybe someone knows a good starting-point for this.

Best regards,

Tabor25
AnswerRe: MFC-App and Hyper-Threading Pin
Marc Soleda28-Sep-05 23:05
Marc Soleda28-Sep-05 23:05 
AnswerRe: MFC-App and Hyper-Threading Pin
vikas amin29-Sep-05 3:19
vikas amin29-Sep-05 3:19 
QuestionMFC Windows Application Question Pin
micutzu28-Sep-05 20:09
micutzu28-Sep-05 20:09 
AnswerRe: MFC Windows Application Question Pin
followait28-Sep-05 22:44
followait28-Sep-05 22:44 
AnswerRe: MFC Windows Application Question Pin
vikas amin28-Sep-05 22:58
vikas amin28-Sep-05 22:58 
GeneralRe: MFC Windows Application Question Pin
micutzu29-Sep-05 3:08
micutzu29-Sep-05 3:08 
QuestionURGENT HELP Pin
dharani28-Sep-05 19:35
dharani28-Sep-05 19:35 
AnswerRe: URGENT HELP Pin
*Dreamz28-Sep-05 19:45
*Dreamz28-Sep-05 19:45 
QuestionAbout ADOs Pin
Venkata Ramana Raju28-Sep-05 19:33
Venkata Ramana Raju28-Sep-05 19:33 
AnswerRe: About ADOs Pin
S Douglas28-Sep-05 22:41
professionalS Douglas28-Sep-05 22:41 
GeneralRe: About ADOs Pin
Venkata Ramana Raju3-Oct-05 2:19
Venkata Ramana Raju3-Oct-05 2:19 
GeneralRe: About ADOs Pin
S Douglas3-Oct-05 3:49
professionalS Douglas3-Oct-05 3:49 
AnswerRe: About ADOs Pin
Marc Soleda28-Sep-05 22:59
Marc Soleda28-Sep-05 22:59 
QuestionHow to get IP package from a computer? Pin
rushing28-Sep-05 15:40
rushing28-Sep-05 15:40 
QuestionSubclassing CDialog from Form Pin
Danielle Schmitt28-Sep-05 12:53
Danielle Schmitt28-Sep-05 12:53 
AnswerRe: Subclassing CDialog from Form Pin
Jose Lamas Rios28-Sep-05 18:39
Jose Lamas Rios28-Sep-05 18:39 
GeneralRe: Subclassing CDialog from Form Pin
Danielle Schmitt29-Sep-05 8:14
Danielle Schmitt29-Sep-05 8:14 

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.