Click here to Skip to main content
15,904,822 members
Home / Discussions / COM
   

COM

 
GeneralRe: Microsoft Script Control Run-time error Pin
Vi229-Jul-03 1:31
Vi229-Jul-03 1:31 
GeneralBasic COM automation doubts, Please help. Pin
Venkateswar Rao27-Jul-03 23:20
Venkateswar Rao27-Jul-03 23:20 
GeneralRe: Basic COM automation doubts, Please help. Pin
first_sandy28-Jul-03 1:22
first_sandy28-Jul-03 1:22 
GeneralRe: Basic COM automation doubts, Please help. Pin
Venkateswar Rao28-Jul-03 1:58
Venkateswar Rao28-Jul-03 1:58 
Questionhow to return from IDispatch invoke? Pin
safee ullah27-Jul-03 21:14
safee ullah27-Jul-03 21:14 
AnswerRe: how to return from IDispatch invoke? Pin
Mike Dimmick28-Jul-03 2:27
Mike Dimmick28-Jul-03 2:27 
GeneralRe: how to return from IDispatch invoke? Pin
safee ullah28-Jul-03 2:53
safee ullah28-Jul-03 2:53 
GeneralBHO Pin
manuboy27-Jul-03 11:56
manuboy27-Jul-03 11:56 
I'm relatively new to c++ / com. I'm attempting to use a BHO in an intranet environment to add headers to specific urls. My problem is that using the code below, my new header doesn't turn up at the server (testing with an asp page that dumps all headers + an IP packet sniffer).

USES_CONVERSION;<br />
HRESULT hr ;<br />
<br />
if (pDispParams->cArgs >= 5 && pDispParams->rgvarg[5].vt == VT_BYREF|VT_VARIANT))<br />
{<br />
      CComVariant vtURL(*pDispParams->rgvarg[5].pvarVal);	<br />
      vtURL.ChangeType(VT_BSTR);<br />
<br />
      if (strstr(OLE2CA(vtURL.bstrVal), urlSearchList))<br />
      {<br />
	// cancel the navigation<br />
	pDispParams->rgvarg[0].boolVal = VARIANT_TRUE;<br />
<br />
	// send stop to browser<br />
	hr = m_spWebBrowser2->Stop();<br />
	if (FAILED(hr))<br />
 	  return hr;<br />
<br />
	CComBSTR    bstrHeaders("NewHeader: Header1\n\r");<br />
	CComVariant newUrl(vtURL.bstrVal);<br />
	newUrl.ChangeType(VT_BSTR);<br />
			<br />
	CComVariant vHeaders(bstrHeaders.m_str);<br />
	vHeaders.ChangeType(VT_BSTR|VT_BYREF);<br />
	<br />
        // navigate!<br />
	hr = m_spWebBrowser2->Navigate2(&newUrl, NULL, NULL, NULL, &vHeaders);<br />
	if (FAILED(hr))<br />
	  return hr;<br />
      }<br />
  }


The MSDN docs for the naviagte2 method show the headers arg as being pointer to variant. Am i using the wrong type?

Any links, code, or pointers much appreciated...WTF | :WTF:

::Confused
GeneralRe: BHO Pin
Michael Dunn27-Jul-03 12:07
sitebuilderMichael Dunn27-Jul-03 12:07 
GeneralRe: BHO Pin
manuboy27-Jul-03 12:12
manuboy27-Jul-03 12:12 
GeneralGetting selected folder in a namespace extension Pin
Mike Hartway25-Jul-03 14:28
Mike Hartway25-Jul-03 14:28 
QuestionHow to SendMessage to a windowless Ctrl Pin
ray_li25-Jul-03 5:41
ray_li25-Jul-03 5:41 
AnswerRe: How to SendMessage to a windowless Ctrl Pin
John M. Drescher25-Jul-03 6:54
John M. Drescher25-Jul-03 6:54 
AnswerRe: How to SendMessage to a windowless Ctrl Pin
MartinOrtiz31-Jul-03 12:24
MartinOrtiz31-Jul-03 12:24 
GeneralCOM+ / MSMQ Pin
sam_jr24-Jul-03 17:05
sam_jr24-Jul-03 17:05 
GeneralRe: COM+ / MSMQ Pin
ICBM25-Jul-03 15:02
ICBM25-Jul-03 15:02 
GeneralClosing document in Word under Automation Pin
Dave Loeser24-Jul-03 4:52
Dave Loeser24-Jul-03 4:52 
Generalword automation Pin
Jason Henderson23-Jul-03 10:06
Jason Henderson23-Jul-03 10:06 
GeneralArrays of IUnknown.. Pin
ICBM22-Jul-03 0:27
ICBM22-Jul-03 0:27 
GeneralRe: Arrays of IUnknown.. Pin
valikac22-Jul-03 8:56
valikac22-Jul-03 8:56 
GeneralRe: Arrays of IUnknown.. Pin
first_sandy25-Jul-03 3:40
first_sandy25-Jul-03 3:40 
GeneralRe: Arrays of IUnknown.. Pin
ICBM25-Jul-03 13:44
ICBM25-Jul-03 13:44 
QuestionHow to prevent binding a Type library to a ATL Attributed DLL ? Pin
talhalfon21-Jul-03 22:39
talhalfon21-Jul-03 22:39 
GeneralIE plugin Pin
nettrinity20-Jul-03 17:04
nettrinity20-Jul-03 17:04 
GeneralRe: IE plugin Pin
ashxly21-Jul-03 18:41
ashxly21-Jul-03 18:41 

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.