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

C / C++ / MFC

 
GeneralRe: Console App Pin
David Crow30-Apr-03 6:26
David Crow30-Apr-03 6:26 
GeneralRe: Console App Pin
John L. DeVito30-Apr-03 8:38
professionalJohn L. DeVito30-Apr-03 8:38 
GeneralRe: Console App Pin
Chris Richardson30-Apr-03 22:24
Chris Richardson30-Apr-03 22:24 
GeneralWindows Network API Question Pin
rpace30-Apr-03 5:45
sussrpace30-Apr-03 5:45 
GeneralRe: Windows Network API Question Pin
Baris Kurtlutepe30-Apr-03 12:03
Baris Kurtlutepe30-Apr-03 12:03 
GeneralCCheckListBox Pin
Michael P Butler30-Apr-03 5:33
Michael P Butler30-Apr-03 5:33 
GeneralRe: CCheckListBox Pin
Rage30-Apr-03 5:37
professionalRage30-Apr-03 5:37 
GeneralGetActiveObject fails with IE. Pin
rdautel30-Apr-03 5:17
rdautel30-Apr-03 5:17 
Hi all,

My applicaiton needs to look for and use a currently open IE (Using IE 6) and if there's not one, then start one. The problem I'm having is that GetActiveObject will see other programs such as Excel and Word, but it always fails to see IE running. I've tried both the CLSID_InternetExplorer and using the CLSIDFromProgID function. Neither seen to work. I've also read that some Office programs need to loose focus before they register running objects, but that does not seem to help in this case either. Any ideas? Is there something with IE that I'm not setting? Can CoCreateInstance or CoGetClassObject be used to detect? Thanks for any info. -rob.

HRESULT hr;

hr = ::CLSIDFromProgID(L"IExplorer.Application",&prog_clsid);

assert(SUCCEEDED(hr));

hr = ::GetActiveObject(prog_clsid, NULL, &pUnk);
// hr = ::GetActiveObject(CLSID_InternetExplorer, NULL, &pUnk);
assert(SUCCEEDED(hr));

GeneralRe: GetActiveObject fails with IE. Pin
Chris Richardson30-Apr-03 22:29
Chris Richardson30-Apr-03 22:29 
GeneralQuestion mark icon in title bar Pin
JensB30-Apr-03 4:18
JensB30-Apr-03 4:18 
GeneralRe: Question mark icon in title bar Pin
David Crow30-Apr-03 4:48
David Crow30-Apr-03 4:48 
GeneralRe: Question mark icon in title bar Pin
JensB30-Apr-03 4:53
JensB30-Apr-03 4:53 
GeneralRe: Question mark icon in title bar Pin
David Crow30-Apr-03 4:57
David Crow30-Apr-03 4:57 
GeneralRe: Question mark icon in title bar Pin
JensB30-Apr-03 6:28
JensB30-Apr-03 6:28 
GeneralRe: Question mark icon in title bar Pin
David Crow30-Apr-03 8:52
David Crow30-Apr-03 8:52 
GeneralRe: Question mark icon in title bar Pin
Michael Dunn1-May-03 0:29
sitebuilderMichael Dunn1-May-03 0:29 
GeneralRe: Question mark icon in title bar Pin
JensB1-May-03 23:34
JensB1-May-03 23:34 
General3 Tier Question Pin
nlecren30-Apr-03 3:14
nlecren30-Apr-03 3:14 
GeneralRe: 3 Tier Question Pin
David Crow30-Apr-03 3:26
David Crow30-Apr-03 3:26 
GeneralRe: 3 Tier Question Pin
nlecren30-Apr-03 3:42
nlecren30-Apr-03 3:42 
QuestionIs there a fast method for doing this? Pin
chen30-Apr-03 3:11
chen30-Apr-03 3:11 
AnswerRe: Is there a fast method for doing this? Pin
David Crow30-Apr-03 3:23
David Crow30-Apr-03 3:23 
GeneralRe: Is there a fast method for doing this? Pin
chen30-Apr-03 3:35
chen30-Apr-03 3:35 
GeneralRe: Is there a fast method for doing this? Pin
David Crow30-Apr-03 6:03
David Crow30-Apr-03 6:03 
GeneralRe: Is there a fast method for doing this? Pin
chen30-Apr-03 6:18
chen30-Apr-03 6:18 

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.