Click here to Skip to main content
12,292,006 members (70,469 online)

C / C++ / MFC

 
GeneralRe: Beginner question using headers Pin
Jacob Dixon7-Nov-09 11:30
memberJacob Dixon7-Nov-09 11:30 
GeneralRe: Beginner question using headers Pin
Chris Losinger7-Nov-09 14:37
memberChris Losinger7-Nov-09 14:37 
GeneralRe: Beginner question using headers Pin
Jacob Dixon7-Nov-09 14:41
memberJacob Dixon7-Nov-09 14:41 
GeneralRe: Beginner question using headers Pin
Tim Craig7-Nov-09 21:07
memberTim Craig7-Nov-09 21:07 
GeneralRe: Beginner question using headers [modified] Pin
LunaticFringe8-Nov-09 8:49
memberLunaticFringe8-Nov-09 8:49 
GeneralRe: Beginner question using headers Pin
Chris Losinger8-Nov-09 10:13
memberChris Losinger8-Nov-09 10:13 
GeneralRe: Beginner question using headers Pin
LunaticFringe8-Nov-09 10:26
memberLunaticFringe8-Nov-09 10:26 
QuestionGet IExplorerBrowser from a Windows Explorer (Vista) Pin
Ivo Beltchev7-Nov-09 7:35
memberIvo Beltchev7-Nov-09 7:35 
Hi

I am developing a band for Windows Explorer and I want to get notified when the current folder changes. Looks like IExplorerBrowser provides the notifications I need, but I can't get that interface in my SetSite function. I can get IShellBrowser:

STDMETHODIMP CExplorerBand::SetSite( IUnknown* pUnkSite )
{
	if(pUnkSite)
	{
		CComQIPtr<IServiceProvider> pProvider=pUnkSite;
 
		CComPtr<IShellBrowser> pShellBrowser;
		if (pProvider)
			pProvider->QueryService(SID_SShellBrowser,IID_IShellBrowser,(void**)&pShellBrowser);
	}
	return S_OK;
}
But I don't know what to do to get IExplorerBrowser. I tried QueryInterface on pUnkSite and on pShellBrowser. I tried calling QueryService with IID_IExplorerBrowser and different service IDs. Nothing seems to work.

I'm starting to think that IExplorerBrowser is only intended to be used to host an explorer window in your own application because there are many examples how to create a new instance but not how to get an existing instance.

Any ideas?

Thanks
Ivo
QuestionImage in word document Pin
arpanmukherjee17-Nov-09 4:28
memberarpanmukherjee17-Nov-09 4:28 
AnswerRe: Image in word document Pin
Maximilien7-Nov-09 5:24
memberMaximilien7-Nov-09 5:24 
GeneralRe: Image in word document Pin
arpanmukherjee17-Nov-09 23:35
memberarpanmukherjee17-Nov-09 23:35 
GeneralRe: Image in word document Pin
Rajesh R Subramanian8-Nov-09 19:57
mvpRajesh R Subramanian8-Nov-09 19:57 
QuestionHow to join two programes? Pin
Waldemar Ork7-Nov-09 3:33
memberWaldemar Ork7-Nov-09 3:33 
AnswerRe: How to join two programes? Pin
LunaticFringe7-Nov-09 7:19
memberLunaticFringe7-Nov-09 7:19 
GeneralRe: How to join two programes? Pin
Waldemar Ork7-Nov-09 8:00
memberWaldemar Ork7-Nov-09 8:00 
GeneralRe: How to join two programes? Pin
LunaticFringe7-Nov-09 8:42
memberLunaticFringe7-Nov-09 8:42 
GeneralRe: How to join two programes? Pin
Waldemar Ork8-Nov-09 0:20
memberWaldemar Ork8-Nov-09 0:20 
GeneralRe: How to join two programes? Pin
Richard Andrew x648-Nov-09 6:55
memberRichard Andrew x648-Nov-09 6:55 
GeneralRe: How to join two programes? Pin
LunaticFringe8-Nov-09 8:05
memberLunaticFringe8-Nov-09 8:05 
GeneralRe: How to join two programes? Pin
Waldemar Ork8-Nov-09 9:49
memberWaldemar Ork8-Nov-09 9:49 
QuestionRe: How to join two programes? Pin
DavidCrow7-Nov-09 10:06
mvpDavidCrow7-Nov-09 10:06 
Questionneed information about online courses in vc++ Pin
l_d7-Nov-09 3:01
memberl_d7-Nov-09 3:01 
AnswerRe: need information about online courses in vc++ Pin
Richard MacCutchan7-Nov-09 4:23
memberRichard MacCutchan7-Nov-09 4:23 
Questiondraw buterfly grahics using c,c++ Pin
aviparida7-Nov-09 1:03
memberaviparida7-Nov-09 1:03 
AnswerRe: draw buterfly grahics using c,c++ Pin
Richard MacCutchan7-Nov-09 4:32
memberRichard MacCutchan7-Nov-09 4: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.


Advertise | Privacy | Mobile
Web02 | 2.8.160518.1 | Last Updated 25 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid