Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to write a correct Multi Threaded Application [modified] Pin
swarup28-Jun-07 18:36
swarup28-Jun-07 18:36 
AnswerRe: how to write a correct Multi Threaded Application Pin
swarup29-Jun-07 5:14
swarup29-Jun-07 5:14 
QuestionProblem accessing network printers from Services Pin
Sivakumar R28-Jun-07 17:45
Sivakumar R28-Jun-07 17:45 
AnswerRe: Problem accessing network printers from Services Pin
kakan28-Jun-07 20:54
professionalkakan28-Jun-07 20:54 
GeneralRe: Problem accessing network printers from Services Pin
Sivakumar R29-Jun-07 1:39
Sivakumar R29-Jun-07 1:39 
GeneralRe: Problem accessing network printers from Services Pin
kakan29-Jun-07 1:49
professionalkakan29-Jun-07 1:49 
GeneralRe: Problem accessing network printers from Services Pin
Sivakumar R29-Jun-07 2:23
Sivakumar R29-Jun-07 2:23 
QuestionTrapping all of another process's messages Pin
Kevin Kinnett28-Jun-07 12:55
Kevin Kinnett28-Jun-07 12:55 
I am trying to simulate a user clicking through a series of tasks in IE. Some of those tasks require a user to click on dialog boxes, for example “Deleting this item may have harmful consequences”, or clicking through a “Save As” sequence of dialogs. I can successfully click on the buttons using windows messaging BM_CLICK. The only problem is I have to wait for 1 to 2 seconds after the dialog box is instantiated for the click to happen reliably. But just waiting for a couple of seconds is not an option in this situation. I have tried a number of things to try to deterministically figure out when it is a proper time to be able to click, like setting the dialog to the foreground, set it as the active window, I have trying using BM_LEFTDOWN, and BM_LEFTUP instead of click, trying to send a null message with a callback to make sure it is in a state to process messages, all to no avail.

I think that there is some process that must be happening in the first second or two, that I am unaware of. I would like to be able to hook into the button and listen to all the messages it is receiving or sending from the very instant that it is instantiated and maybe wait for a certain set of messages to happen before I continue the simulation.

Is there a relatively easy way of hooking into another windows messaging queue and seeing ALL the messages that it is sending or receiving (similar to spy).


-KKinnett
AnswerRe: Trapping all of another process's messages Pin
Stephen Hewitt28-Jun-07 17:10
Stephen Hewitt28-Jun-07 17:10 
AnswerRe: Trapping all of another process's messages Pin
Stephen Hewitt28-Jun-07 18:17
Stephen Hewitt28-Jun-07 18:17 
QuestionVisual C++ Pin
sherryann28-Jun-07 12:35
sherryann28-Jun-07 12:35 
AnswerRe: Visual C++ Pin
Mark Salsbery28-Jun-07 13:07
Mark Salsbery28-Jun-07 13:07 
GeneralRe: Visual C++ Pin
Rajesh R Subramanian28-Jun-07 20:55
professionalRajesh R Subramanian28-Jun-07 20:55 
GeneralRe: Visual C++ Pin
Mark Salsbery30-Jun-07 7:21
Mark Salsbery30-Jun-07 7:21 
AnswerRe: Visual C++ Pin
Christian Graus28-Jun-07 13:22
protectorChristian Graus28-Jun-07 13:22 
QuestionCompiler Options and the DDK Build Environments Pin
switang28-Jun-07 7:51
switang28-Jun-07 7:51 
AnswerRe: Compiler Options and the DDK Build Environments Pin
switang29-Jun-07 4:31
switang29-Jun-07 4:31 
GeneralRe: Compiler Options and the DDK Build Environments Pin
JudyL_MD29-Jun-07 9:58
JudyL_MD29-Jun-07 9:58 
GeneralRe: Compiler Options and the DDK Build Environments Pin
switang29-Jun-07 10:43
switang29-Jun-07 10:43 
QuestionPostMessage to a remote thread Pin
bend0r!28-Jun-07 7:30
bend0r!28-Jun-07 7:30 
AnswerRe: PostMessage to a remote thread Pin
Mark Salsbery28-Jun-07 7:38
Mark Salsbery28-Jun-07 7:38 
GeneralRe: PostMessage to a remote thread Pin
led mike28-Jun-07 7:58
led mike28-Jun-07 7:58 
GeneralRe: PostMessage to a remote thread Pin
Mark Salsbery28-Jun-07 11:12
Mark Salsbery28-Jun-07 11:12 
GeneralRe: PostMessage to a remote thread Pin
Matthew Faithfull28-Jun-07 7:41
Matthew Faithfull28-Jun-07 7:41 
AnswerRe: PostMessage to a remote thread Pin
Randor 28-Jun-07 10:32
professional Randor 28-Jun-07 10:32 

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.