Click here to Skip to main content
15,510,483 members
Home / Discussions / COM
   

COM

 
QuestionMozilla DOM Model Pin
kamaljagesia8-Mar-11 23:42
kamaljagesia8-Mar-11 23:42 
QuestionOPC connectivity problem : CoCreateInstance issue Pin
Neo Andreson18-Feb-11 3:24
Neo Andreson18-Feb-11 3:24 
AnswerRe: OPC connectivity problem : CoCreateInstance issue Pin
Randy Kondor19-Feb-11 15:37
Randy Kondor19-Feb-11 15:37 
Questionquestion about COM event handler Pin
asr112214-Feb-11 4:40
asr112214-Feb-11 4:40 
QuestionHow to get COM IID from a registered dll Pin
drakkor_111-Feb-11 14:22
drakkor_111-Feb-11 14:22 
AnswerRe: How to get COM IID from a registered dll Pin
drakkor_111-Feb-11 14:33
drakkor_111-Feb-11 14:33 
GeneralRe: How to get COM IID from a registered dll Pin
NedoRot14-Feb-11 3:32
NedoRot14-Feb-11 3:32 
QuestionIObjectWithSite - amidoinitrite? Pin
T800G2-Feb-11 11:53
T800G2-Feb-11 11:53 
I'm trying to do this error-free.
I'm writing context menu shell extension that will navigate current Explorer window through IShellBrowser acquired through IObjectWithSite and so far I have this (omitting unimportant code):
header file
class ATL_NO_VTABLE CShellTarget : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public CComCoClass<CShellTarget,&CLSID_ShellTarget>,
	public IShellExtInit,
	public IContextMenu,
	public IObjectWithSiteImpl<CShellTarget>
...
private:
	CComPtr<IShellBrowser> m_pShellBrowser;
...
};

and here I override SetSite method, but I'm not sure if this code is OK
HRESULT CShellTarget::SetSite(IUnknown *pUnkSite)
{
	ATLTRACE("IObjectWithSiteImpl::SetSite\n");

	IObjectWithSiteImpl<CShellTarget>::SetSite(pUnkSite);

	if (m_spUnkSite!=NULL)
	{
		CComQIPtr<IServiceProvider>; sp = pUnkSite;
		sp->QueryService(SID_SShellBrowser,IID_IShellBrowser,(void**)&m_pShellBrowser);
		//verify m_pShellBrowser etc...
	}
	else m_pShellBrowser.Release();

return S_OK;
}

It's hard to find one representative code sample of IObjectWithSite and Google isn't that much helpful.
(btw yea I know about WM_GETISHELLBROWSER hack)
Help is appreciated.
QuestionPlz help with QueryInterface() [modified] Pin
Ganesamoorthy.S26-Jan-11 23:59
Ganesamoorthy.S26-Jan-11 23:59 
AnswerRe: Plz help with QueryInterface() Pin
Yusuf27-Jan-11 2:02
Yusuf27-Jan-11 2:02 
QuestionCComContainedObject Question Pin
Craig Longman23-Jan-11 13:36
Craig Longman23-Jan-11 13:36 
QuestionProblem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit Pin
Aseem Sharma22-Dec-10 16:01
Aseem Sharma22-Dec-10 16:01 
AnswerRe: Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit Pin
ShilpiP22-Dec-10 22:38
ShilpiP22-Dec-10 22:38 
QuestionDifference between COM and DCOM Pin
tasumisra28-Nov-10 16:39
tasumisra28-Nov-10 16:39 
AnswerRe: Difference between COM and DCOM Pin
«_Superman_»29-Nov-10 9:20
professional«_Superman_»29-Nov-10 9:20 
AnswerRe: Difference between COM and DCOM Pin
Abhinav S16-Jan-11 4:11
Abhinav S16-Jan-11 4:11 
AnswerRe: Difference between COM and DCOM Pin
Shameel17-Aug-11 3:34
professionalShameel17-Aug-11 3:34 
Questionproblem with SafeArrayPutElement Pin
Member 444090525-Nov-10 18:22
Member 444090525-Nov-10 18:22 
AnswerRe: problem with SafeArrayPutElement Pin
T21021-Jan-11 2:49
T21021-Jan-11 2:49 
QuestionHow can I filter unwanted unwanted types(not in my code) from DIA SDK? Pin
glitteringsound13-Nov-10 4:52
glitteringsound13-Nov-10 4:52 
AnswerRe: How can I filter unwanted unwanted types(not in my code) from DIA SDK? Pin
Richard MacCutchan13-Nov-10 8:06
mveRichard MacCutchan13-Nov-10 8:06 
GeneralRe: How can I filter unwanted unwanted types(not in my code) from DIA SDK? Pin
glitteringsound13-Nov-10 10:51
glitteringsound13-Nov-10 10:51 
GeneralRe: How can I filter unwanted unwanted types(not in my code) from DIA SDK? Pin
Richard MacCutchan14-Nov-10 2:45
mveRichard MacCutchan14-Nov-10 2:45 
GeneralRe: How can I filter unwanted unwanted types(not in my code) from DIA SDK? Pin
glitteringsound14-Nov-10 4:52
glitteringsound14-Nov-10 4:52 
GeneralRe: How can I filter unwanted unwanted types(not in my code) from DIA SDK? Pin
Richard MacCutchan14-Nov-10 5:23
mveRichard MacCutchan14-Nov-10 5:23 

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.