Click here to Skip to main content
15,902,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: a question regarding CString Pin
ThatsAlok6-May-06 23:07
ThatsAlok6-May-06 23:07 
QuestionHTML Interface Pin
kk.tvm5-May-06 23:38
kk.tvm5-May-06 23:38 
AnswerRe: HTML Interface Pin
Hamid_RT6-May-06 0:24
Hamid_RT6-May-06 0:24 
AnswerRe: HTML Interface Pin
ThatsAlok6-May-06 23:08
ThatsAlok6-May-06 23:08 
QuestionImportant:Sinking to HTML element events in IE Pin
rana745-May-06 23:34
rana745-May-06 23:34 
AnswerRe: Important:Sinking to HTML element events in IE Pin
Stephen Hewitt5-May-06 23:39
Stephen Hewitt5-May-06 23:39 
GeneralRe: Important:Sinking to HTML element events in IE Pin
rana745-May-06 23:41
rana745-May-06 23:41 
GeneralRe: Important:Sinking to HTML element events in IE Pin
Stephen Hewitt6-May-06 0:00
Stephen Hewitt6-May-06 0:00 
Perhaps it does (implement a connection point) but you're just using the wrong value in the riid argument in your call to IConnectionPointContainer::FindConnectionPoint for the element in question - this has happened to me before. Use code something like this:
void LogConnectionPoints(IUnknown *pUnk)
{
	CComQIPtr<IConnectionPointContainer> spCPC(pUnk);
	if (!spCPC)
	{
		return;
	}
 
	CComPtr<IEnumConnectionPoints> spEnumCP;
	HRESULT hr = spCPC->EnumConnectionPoints(&spEnumCP);
	if ( FAILED(hr) )
	{
		return;
	}
 
	ULONG fetched;
	CComPtr<IConnectionPoint> spCP;
	while ( spEnumCP->Next(1, &spCP, &fetched) == S_OK )
	{
		IID iid;
		hr = spCP->GetConnectionInterface(&iid);
		if ( SUCCEEDED(hr) )
		{
			// Log "iid" here.
		}
		spCP.Release();
	}
}


I may have made some syntax errors: I have used code like this before with IE and it has worked but this specific piece of code is off the top of my head and not tested. Once you log all the "iid"s supported for the element in question you can try every one and see which ones work and look them up in "mshtml.idl" to get their names.

Steve
Questionhow to save all frames from a video file as a jpeg image Pin
sunita ramesh5-May-06 23:26
sunita ramesh5-May-06 23:26 
AnswerRe: how to save all frames from a video file as a jpeg image Pin
kk.tvm5-May-06 23:45
kk.tvm5-May-06 23:45 
AnswerRe: how to save all frames from a video file as a jpeg image Pin
Phil C6-May-06 20:24
Phil C6-May-06 20:24 
QuestionOutput of Simple C Program ? Pin
Andy Rama5-May-06 23:05
Andy Rama5-May-06 23:05 
AnswerRe: Output of Simple C Program ? Pin
Nibu babu thomas5-May-06 23:11
Nibu babu thomas5-May-06 23:11 
GeneralRe: Output of Simple C Program ? Pin
Andy Rama5-May-06 23:49
Andy Rama5-May-06 23:49 
AnswerRe: Output of Simple C Program ? Pin
Hamid_RT6-May-06 0:38
Hamid_RT6-May-06 0:38 
GeneralRe: Output of Simple C Program ? Pin
Andy Rama6-May-06 18:26
Andy Rama6-May-06 18:26 
GeneralRe: Output of Simple C Program ? Pin
Phil C6-May-06 20:33
Phil C6-May-06 20:33 
AnswerRe: Output of Simple C Program ? Pin
ludao5186-May-06 1:53
ludao5186-May-06 1:53 
QuestionApplying xslt (to xml) from c++ Pin
mohanrajh5-May-06 21:30
mohanrajh5-May-06 21:30 
AnswerRe: Applying xslt (to xml) from c++ Pin
Stephen Hewitt5-May-06 23:23
Stephen Hewitt5-May-06 23:23 
QuestionHow to use IMpeg2Data & IMpeg2PsiParser Intefaces Pin
Andy Rama5-May-06 21:12
Andy Rama5-May-06 21:12 
AnswerRe: How to use IMpeg2Data & IMpeg2PsiParser Intefaces Pin
Nibu babu thomas5-May-06 21:16
Nibu babu thomas5-May-06 21:16 
AnswerRe: How to use IMpeg2Data &amp;amp; IMpeg2PsiParser Intefaces Pin
Justin Tay5-May-06 21:21
Justin Tay5-May-06 21:21 
GeneralRe: How to use IMpeg2Data &amp;amp; IMpeg2PsiParser Intefaces Pin
Andy Rama5-May-06 21:53
Andy Rama5-May-06 21:53 
QuestionI can run my app, but no one else can ;(... why? Pin
chasetoys5-May-06 18:58
chasetoys5-May-06 18:58 

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.