Click here to Skip to main content
16,016,345 members
Home / Discussions / COM
   

COM

 
GeneralRe: Urgent Help on COM Pin
Michael Dunn19-Oct-01 8:25
sitebuilderMichael Dunn19-Oct-01 8:25 
Generalexe service using com which uses ADO:) Pin
18-Oct-01 22:04
suss18-Oct-01 22:04 
Generalupdate Pin
Johny Flash19-Oct-01 1:17
Johny Flash19-Oct-01 1:17 
GeneralRe: exe service using com which uses ADO:) Pin
Rashid Thadha20-Oct-01 12:56
Rashid Thadha20-Oct-01 12:56 
GeneralRe: exe service using com which uses ADO:) Pin
Johny Flash21-Oct-01 20:52
Johny Flash21-Oct-01 20:52 
Generalupdate #2 Pin
Johny Flash22-Oct-01 0:06
Johny Flash22-Oct-01 0:06 
GeneralAccessing IWebBrowser2 w/ ATL object Pin
IGx8918-Oct-01 16:06
IGx8918-Oct-01 16:06 
GeneralRe: Accessing IWebBrowser2 w/ ATL object Pin
Michael Dunn18-Oct-01 19:43
sitebuilderMichael Dunn18-Oct-01 19:43 
Here's the code to do it.
CComQIPtr<IServiceProvider> sp =  punkSite;
CComPtr<IWebBrowser2> pbrowser;
 
    if ( sp )
        sp->QueryService ( IID_IWebBrowserApp, IID_IWebBrowser2, (void**) &pbrowser );
The site doesn't implement IWebBrowser2, but it knows how to get such an interface, so you ask it for that interface with IServiceProvider::QueryService().

--Mike--
http://home.inreach.com/mdunn/
"....." -- Silent Bob
Heart | [heart] your Green Alien | [Alien] with Good Stuff | [The good stuff] and Beer | [beer]
GeneralRe: Accessing IWebBrowser2 w/ ATL object Pin
IGx8919-Oct-01 5:42
IGx8919-Oct-01 5:42 
GeneralAdding a progress bar in ATL Pin
scoob18-Oct-01 7:53
scoob18-Oct-01 7:53 
GeneralInterfacing w/ IE, andIOleControl Pin
IGx8917-Oct-01 15:49
IGx8917-Oct-01 15:49 
GeneralRe: Interfacing w/ IE, andIOleControl Pin
Erik Thompson18-Oct-01 8:29
sitebuilderErik Thompson18-Oct-01 8:29 
GeneralRe: Interfacing w/ IE, andIOleControl Pin
IGx8918-Oct-01 12:56
IGx8918-Oct-01 12:56 
GeneralRe: Interfacing w/ IE, andIOleControl Pin
IGx8919-Oct-01 5:43
IGx8919-Oct-01 5:43 
GeneralATL that importing DLL Pin
mimi17-Oct-01 0:58
mimi17-Oct-01 0:58 
GeneralRe: ATL that importing DLL Pin
kumar_p317-Oct-01 16:55
kumar_p317-Oct-01 16:55 
GeneralThank you . more details. Please Help Pin
mimi17-Oct-01 22:45
mimi17-Oct-01 22:45 
GeneralRe: ATL that importing DLL Pin
mimi17-Oct-01 23:52
mimi17-Oct-01 23:52 
GeneralMaking things pretty by returning BSTR's (ATLCOM) Pin
Tim Rymer16-Oct-01 10:00
Tim Rymer16-Oct-01 10:00 
GeneralRe: Making things pretty by returning BSTR's (ATLCOM) Pin
Not Active16-Oct-01 11:17
mentorNot Active16-Oct-01 11:17 
GeneralRe: Making things pretty by returning BSTR's (ATLCOM) Pin
Shadi Al-Kahwaji16-Oct-01 22:00
Shadi Al-Kahwaji16-Oct-01 22:00 
GeneralRe: Making things pretty by returning BSTR's (ATLCOM) Pin
Michael P Butler16-Oct-01 22:36
Michael P Butler16-Oct-01 22:36 
GeneralRe: Making things pretty by returning BSTR's (ATLCOM) Pin
22-Oct-01 13:08
suss22-Oct-01 13:08 
GeneralRe: Making things pretty by returning BSTR's (ATLCOM) Pin
Bill Wilson22-Oct-01 14:10
Bill Wilson22-Oct-01 14:10 
GeneralInconsistent registration Pin
Jamie Hale16-Oct-01 8:49
Jamie Hale16-Oct-01 8:49 

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.