Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: StormSimulation [modified] Pin
Rick York10-Apr-07 10:13
mveRick York10-Apr-07 10:13 
GeneralRe: StormSimulation Pin
Dustin Henry10-Apr-07 11:28
Dustin Henry10-Apr-07 11:28 
Questionshellexecuteex Pin
deeps_cute10-Apr-07 4:16
deeps_cute10-Apr-07 4:16 
AnswerRe: shellexecuteex Pin
Roger Stoltz10-Apr-07 4:37
Roger Stoltz10-Apr-07 4:37 
GeneralRe: shellexecuteex [modified] pls help me its urgent Pin
deeps_cute10-Apr-07 4:43
deeps_cute10-Apr-07 4:43 
QuestionRe: shellexecuteex [modified] pls help me its urgent Pin
David Crow10-Apr-07 5:09
David Crow10-Apr-07 5:09 
AnswerRe: shellexecuteex [modified] pls help me its urgent Pin
deeps_cute10-Apr-07 5:11
deeps_cute10-Apr-07 5:11 
GeneralRe: shellexecuteex [modified] pls help me its urgent Pin
Roger Stoltz10-Apr-07 5:27
Roger Stoltz10-Apr-07 5:27 
deeps_cute wrote:
how to know the user has closed the webpage eventhough its running


It's not very clear what you mean, but here's how I interpret your problem:
You want to show a certain web page to the user and get informed when the user has closed the web page.

If you open the web page through the DDE mechanism as you currently are, an already running instance of the browser will show the web page unless configured to explicitly create another instance in its DDE command in the registry which is wuite uncommon.
When this happens you have no way of knowing when the user closes the browser instance since no process handle will be returned.

Even if the browser is not running when you call ::ShellExecuteEx(...), you have no idea if the user leaves the initial web page.
To my knowledge the only way to do this is running the browser as a COM server and listen for an event fired when the user browse to another page.

I think you have to think this through once again, or at least tell us what limitations you can accept. Consider using ::CreateProcess(...) to create a new browser instance every time, but you still wouldn't know if the user browses to another page.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

GeneralRe: shellexecuteex [modified] pls help me its urgent Pin
deeps_cute10-Apr-07 17:31
deeps_cute10-Apr-07 17:31 
GeneralRe: shellexecuteex [modified] pls help me its urgent Pin
Roger Stoltz10-Apr-07 21:01
Roger Stoltz10-Apr-07 21:01 
QuestionPlease assist : Unresolved extenal errors Pin
Wamuti10-Apr-07 3:37
Wamuti10-Apr-07 3:37 
AnswerRe: Please assist : Unresolved extenal errors Pin
Iain Clarke, Warrior Programmer10-Apr-07 3:43
Iain Clarke, Warrior Programmer10-Apr-07 3:43 
Questiongetting username from windows service in VC++.Net2005 Pin
anumadhu10-Apr-07 3:33
anumadhu10-Apr-07 3:33 
QuestionHow to program about Remote Desktop Client Pin
onlysaint10-Apr-07 3:28
onlysaint10-Apr-07 3:28 
AnswerRe: How to program about Remote Desktop Client Pin
David Crow10-Apr-07 3:33
David Crow10-Apr-07 3:33 
GeneralRe: How to program about Remote Desktop Client Pin
Mark Salsbery10-Apr-07 7:23
Mark Salsbery10-Apr-07 7:23 
QuestionRe: How to program about Remote Desktop Client Pin
David Crow10-Apr-07 7:37
David Crow10-Apr-07 7:37 
QuestionPlease help me. It's urgent ! Pin
Nikhil Trivedi10-Apr-07 2:32
Nikhil Trivedi10-Apr-07 2:32 
AnswerRe: Please help me. It's urgent ! Pin
sburner10-Apr-07 2:35
sburner10-Apr-07 2:35 
AnswerRe: Please help me. It's urgent ! Pin
Nikhil Trivedi10-Apr-07 2:44
Nikhil Trivedi10-Apr-07 2:44 
GeneralRe: Please help me. It's urgent ! Pin
sburner10-Apr-07 3:09
sburner10-Apr-07 3:09 
QuestionHooking text output Pin
sburner10-Apr-07 2:22
sburner10-Apr-07 2:22 
AnswerRe: Hooking text output Pin
Stephen Hewitt10-Apr-07 17:32
Stephen Hewitt10-Apr-07 17:32 
Questionmaking a dialog box usiong mfc Pin
jombaweed10-Apr-07 1:37
jombaweed10-Apr-07 1:37 
AnswerRe: making a dialog box usiong mfc Pin
Hamid_RT10-Apr-07 1:59
Hamid_RT10-Apr-07 1:59 

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.