Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to wait untill created process finishes. Pin
Rick York2-Mar-06 19:44
mveRick York2-Mar-06 19:44 
QuestionCode for getting list of all running services on pc Pin
virz2-Mar-06 0:34
virz2-Mar-06 0:34 
AnswerRe: Code for getting list of all running services on pc Pin
Monty22-Mar-06 0:56
Monty22-Mar-06 0:56 
AnswerRe: Code for getting list of all running services on pc Pin
Naveen2-Mar-06 1:06
Naveen2-Mar-06 1:06 
AnswerRe: Code for getting list of all running services on pc Pin
ThatsAlok2-Mar-06 18:24
ThatsAlok2-Mar-06 18:24 
Questiondrive info Pin
sundar_mca2-Mar-06 0:19
sundar_mca2-Mar-06 0:19 
AnswerRe: drive info Pin
ThatsAlok2-Mar-06 18:45
ThatsAlok2-Mar-06 18:45 
QuestionHelp with IHttpNegotiate Pin
acroitor2-Mar-06 0:06
acroitor2-Mar-06 0:06 
Hi people,
I need some help with IHttpNegotiate interface.
I have a BHO that also implements IBindStatusCallback and IHttpNegotiate interfaces. Also it implements IDispatch interface to catch DWebBrowserEvents2. So in IDispatch's Invoke method I create a URLMoniker, as url I pass the url entered in the browser and bind it to my instance of IBindStatusCallback. I was expecting that IHttpNegotiate's BeginningTransaction method will get called for every request done by browser while loading the given url, I mean for requests to css,jscript,image, etc. but it only gets called for request done for the url itself. Can someone advise how to catch all the requests ?
Thanks.

Here is a bit of code where I create and register the URLMoniker:
<br />
STDMETHODIMP CIEPlugin::Invoke(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags,<br />
                                         DISPPARAMS* pDispParams, VARIANT* pvarResult,<br />
                                         EXCEPINFO*  pExcepInfo,  UINT* puArgErr)<br />
{		<br />
	switch (dispidMember)<br />
	{<br />
		case DISPID_NAVIGATECOMPLETE2 :		<br />
			BSTR url;<br />
			m_spWebBrowser2->get_LocationURL(&url);<br />
//============================Moniker code=========================<br />
			DWebBrowserEvents2 *pstm;<br />
			IMoniker* ppmk;<br />
			CreateURLMoniker(NULL, url, &ppmk);			<br />
			IBindCtx *pbc;<br />
			CreateAsyncBindCtx(0, this, NULL, &pbc);<br />
			RegisterBindStatusCallback(pbc, this, NULL, 0); <br />
			ppmk->BindToObject(pbc, NULL, DIID_DWebBrowserEvents2,(void**)&pstm);		<br />
//=================================================================<br />
			break;<br />
		default:<br />
			break;<br />
	}<br />
	return S_OK;<br />
}<br />
//==== IHttpNegotiate method<br />
HRESULT CIEPlugin::BeginningTransaction (LPCWSTR szURL, LPCWSTR szHeaders, DWORD dwReserved, LPWSTR *pszAdditionalHeaders)<br />
{<br />
	MessageBox(NULL, bstr_t(szHeaders), "B", MB_OK);<br />
	return S_OK;<br />
}<br />

QuestionCSocket ASSERTS on Close Pin
Sarath C1-Mar-06 23:48
Sarath C1-Mar-06 23:48 
QuestionCWnd::CreateControl error when create .NET control Pin
JohanOdin1-Mar-06 23:46
JohanOdin1-Mar-06 23:46 
Questionconverting Hex to int Pin
chaitanya221-Mar-06 23:04
chaitanya221-Mar-06 23:04 
AnswerRe: converting Hex to int Pin
Naveen1-Mar-06 23:09
Naveen1-Mar-06 23:09 
AnswerRe: converting Hex to int Pin
toxcct1-Mar-06 23:10
toxcct1-Mar-06 23:10 
GeneralRe: converting Hex to int Pin
chaitanya221-Mar-06 23:25
chaitanya221-Mar-06 23:25 
GeneralRe: converting Hex to int Pin
toxcct1-Mar-06 23:28
toxcct1-Mar-06 23:28 
GeneralRe: converting Hex to int Pin
Cedric Moonen1-Mar-06 23:45
Cedric Moonen1-Mar-06 23:45 
GeneralRe: converting Hex to int Pin
toxcct1-Mar-06 23:47
toxcct1-Mar-06 23:47 
GeneralRe: converting Hex to int Pin
chaitanya222-Mar-06 1:41
chaitanya222-Mar-06 1:41 
GeneralRe: converting Hex to int Pin
Cedric Moonen2-Mar-06 2:18
Cedric Moonen2-Mar-06 2:18 
GeneralRe: converting Hex to binary Pin
chaitanya222-Mar-06 2:08
chaitanya222-Mar-06 2:08 
GeneralRe: converting Hex to binary Pin
Maximilien2-Mar-06 2:26
Maximilien2-Mar-06 2:26 
AnswerRe: converting Hex to int Pin
Roger Stoltz2-Mar-06 2:15
Roger Stoltz2-Mar-06 2:15 
GeneralRe: converting Hex to int Pin
chaitanya222-Mar-06 2:21
chaitanya222-Mar-06 2:21 
GeneralRe: converting Hex to int Pin
Cedric Moonen2-Mar-06 2:58
Cedric Moonen2-Mar-06 2:58 
AnswerRe: converting Hex to int Pin
Konrad Windszus2-Mar-06 3:59
Konrad Windszus2-Mar-06 3: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.