Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralI am looking for batch program Pin
louis17-Feb-05 22:22
louis17-Feb-05 22:22 
GeneralRe: I am looking for batch program Pin
louis17-Feb-05 23:15
louis17-Feb-05 23:15 
GeneralRe: I am looking for batch program Pin
benjymous18-Feb-05 1:19
benjymous18-Feb-05 1:19 
GeneralRe: I am looking for batch program Pin
David Crow18-Feb-05 3:57
David Crow18-Feb-05 3:57 
GeneralMAPI and Shellexecute Pin
Anonymous17-Feb-05 22:20
Anonymous17-Feb-05 22:20 
GeneralRe: MAPI and Shellexecute Pin
ThatsAlok17-Feb-05 22:24
ThatsAlok17-Feb-05 22:24 
Questionthread calling a callback - does the callback run in the thread process? Pin
nikcain17-Feb-05 22:11
nikcain17-Feb-05 22:11 
AnswerRe: thread calling a callback - does the callback run in the thread process? Pin
Bob Ciora18-Feb-05 2:22
Bob Ciora18-Feb-05 2:22 
Yes, it runs within the thread.

If you're in Visual Studio, you can break within your thread on the (*fn)(a++);. Use F11 to step into the function. Then select Debug->Threads from the main menu, and you'll see a list of running threads, with the current thread highlighted.

I'm not sure how many threads you'll see there (depends on your application), but if you double-click any of them, it'll open an appropriate window to display the code currently being executed in that thread. With Call Stack in place, you'll see that one of those threads has your main() happily sleeping while your thread is executing the callback.


Bob Ciora
GeneralMAPI support for MFC application Pin
Anonymous17-Feb-05 21:47
Anonymous17-Feb-05 21:47 
GeneralCListCtrl in CFormView in Report style..HOW TO ADD along with text/INSERT AN IMAGE AS A SUBITEM Pin
sureshpillai17-Feb-05 19:32
sureshpillai17-Feb-05 19:32 
GeneralRe: CListCtrl in CFormView in Report style..HOW TO ADD along with text/INSERT AN IMAGE AS A SUBITEM Pin
Steve Mayfield17-Feb-05 20:10
Steve Mayfield17-Feb-05 20:10 
GeneralProblem in calling Help file. Pin
nguyennp17-Feb-05 17:38
nguyennp17-Feb-05 17:38 
QuestionHow to stop page eject ? Pin
nareshn217-Feb-05 17:16
nareshn217-Feb-05 17:16 
GeneralRuntime Error Pin
IsaacLitingjun17-Feb-05 16:56
IsaacLitingjun17-Feb-05 16:56 
QuestionHow to disable the Direct3D and DirectDraw function? Pin
ErisonWu17-Feb-05 16:15
ErisonWu17-Feb-05 16:15 
Generaldisabling Excel toolbars from within VC Pin
eldar_200117-Feb-05 14:51
eldar_200117-Feb-05 14:51 
GeneralRe: disabling Excel toolbars from within VC Pin
Sujan Christo17-Feb-05 18:06
Sujan Christo17-Feb-05 18:06 
QuestionHow to create shared memory among processes Pin
chito17-Feb-05 14:43
chito17-Feb-05 14:43 
AnswerRe: How to create shared memory among processes Pin
Abhi Lahare17-Feb-05 16:08
Abhi Lahare17-Feb-05 16:08 
Answergo and check this link... Pin
IsaacLitingjun17-Feb-05 16:17
IsaacLitingjun17-Feb-05 16:17 
AnswerRe: How to create shared memory among processes Pin
Ravi Bhavnani17-Feb-05 17:08
professionalRavi Bhavnani17-Feb-05 17:08 
GeneralAPI to make listbox user-viewable only Pin
LiuF17-Feb-05 14:42
LiuF17-Feb-05 14:42 
GeneralRe: API to make listbox user-viewable only Pin
Ravi Bhavnani17-Feb-05 17:07
professionalRavi Bhavnani17-Feb-05 17:07 
Generalload picture Pin
mark18217-Feb-05 14:33
mark18217-Feb-05 14:33 
GeneralRe: load picture Pin
Sapto Priyono17-Feb-05 15:05
Sapto Priyono17-Feb-05 15:05 

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.