Click here to Skip to main content
15,923,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please log in! (Winsock advice) Pin
Moak12-Apr-03 3:33
Moak12-Apr-03 3:33 
GeneralRe: Please log in! (Winsock advice) Pin
Rickard Andersson2012-Apr-03 4:16
Rickard Andersson2012-Apr-03 4:16 
GeneralRe: Please log in! (Winsock advice) Pin
Moak12-Apr-03 4:39
Moak12-Apr-03 4:39 
GeneralRe: Please log in! (Winsock advice) Pin
Rickard Andersson2012-Apr-03 5:37
Rickard Andersson2012-Apr-03 5:37 
GeneralContextMenu of EditBox-es Pin
ZarrinPour11-Apr-03 17:27
ZarrinPour11-Apr-03 17:27 
GeneralRe: ContextMenu of EditBox-es Pin
Nish Nishant11-Apr-03 17:43
sitebuilderNish Nishant11-Apr-03 17:43 
GeneralLearning Move from ATL (no UI) to MFC with UI Pin
Paul Farry11-Apr-03 16:54
professionalPaul Farry11-Apr-03 16:54 
GeneralQuestions on SetProcessAffinityMask Pin
Robert Buldoc11-Apr-03 15:50
Robert Buldoc11-Apr-03 15:50 
Hi!
I am writting a program which has several threads and each thread must run only on one CPU.
My questions are:
1. SetThreadAffinityMask can only thread on those CPU which its process is allowed to run, Can I use this code
SetProcessAffinityMask(GetCurrentProcess(),0xFFFF);
to access all the CPUs(Note: that the affinitiy mask is 1 for all CPUs). Does this code run on all systems without error even on single processor systems?

2. Can I use
SetThreadAffinityMask(GetCurrentThread(),3);
to run the thread on both CPU0 & CPU1? or does it give the choice for thread to run on any of them? or should I set only one vector bit to high?

It is a bit confusing for meConfused | :confused: , anyone can elaborate on this topic?Smile | :) It can be very useful since many new systems are comping with HT or mulitprocessor.

Thanks!
Rob
GeneralGlobal variable's scope through a solution Pin
Albert Jann11-Apr-03 13:41
Albert Jann11-Apr-03 13:41 
GeneralRe: Global variable's scope through a solution Pin
Nish Nishant11-Apr-03 17:49
sitebuilderNish Nishant11-Apr-03 17:49 
QuestionHow to keep a C++ com dll in memory (repost) Pin
Anonymously11-Apr-03 12:23
Anonymously11-Apr-03 12:23 
AnswerRe: How to keep a C++ com dll in memory (repost) Pin
Daniel Turini11-Apr-03 12:31
Daniel Turini11-Apr-03 12:31 
GeneralRe: How to keep a C++ com dll in memory (repost) Pin
Anonymously12-Apr-03 5:21
Anonymously12-Apr-03 5:21 
GeneralResource Editor gone weird. Pin
JohnMcL11-Apr-03 10:42
JohnMcL11-Apr-03 10:42 
GeneralProblems with MessageBox Pin
mnjobes11-Apr-03 10:26
mnjobes11-Apr-03 10:26 
QuestionHi, Maximilien. I'm hkbeckham. Could I have your email addres? Pin
hkbeckham11-Apr-03 9:02
hkbeckham11-Apr-03 9:02 
GeneralClear Files Pin
gmlnd11-Apr-03 8:36
gmlnd11-Apr-03 8:36 
GeneralRe: Clear Files Pin
Brian Shifrin11-Apr-03 20:53
Brian Shifrin11-Apr-03 20:53 
GeneralBitmapButton Pin
bumper11-Apr-03 8:01
bumper11-Apr-03 8:01 
GeneralRe: BitmapButton Pin
Big Art13-Apr-03 7:45
Big Art13-Apr-03 7:45 
Question:confused::confused:How to create a vertical CTabCtrl control?? Pin
psusong11-Apr-03 7:52
psusong11-Apr-03 7:52 
AnswerRe: :confused::confused:How to create a vertical CTabCtrl control?? Pin
Ravi Bhavnani11-Apr-03 9:38
professionalRavi Bhavnani11-Apr-03 9:38 
GeneralRe: :confused::confused:How to create a vertical CTabCtrl control?? Pin
psusong11-Apr-03 11:47
psusong11-Apr-03 11:47 
GeneralFont Coloring Preview Pin
Jonah Bishop11-Apr-03 6:56
Jonah Bishop11-Apr-03 6:56 
GeneralRe: Font Coloring Preview Pin
Ravi Bhavnani11-Apr-03 7:06
professionalRavi Bhavnani11-Apr-03 7: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.