Click here to Skip to main content
15,915,078 members
Home / Discussions / COM
   

COM

 
AnswerRe: COM DLL Server help Pin
Touseef Afzal16-Apr-07 19:03
Touseef Afzal16-Apr-07 19:03 
AnswerRe: COM DLL Server help Pin
sthotakura16-Apr-07 21:07
sthotakura16-Apr-07 21:07 
GeneralRe: COM DLL Server help Pin
Touseef Afzal26-Apr-07 21:42
Touseef Afzal26-Apr-07 21:42 
GeneralRe: COM DLL Server help Pin
Janma20-Apr-07 1:22
Janma20-Apr-07 1:22 
QuestionPreventing Broadcasting from a Singleton Com Server EXE Pin
georgekjolly15-Apr-07 18:55
georgekjolly15-Apr-07 18:55 
QuestionInstall ActiveX for IE by Setup ? Pin
Jan.Seiffert12-Apr-07 22:56
Jan.Seiffert12-Apr-07 22:56 
Questionsetup Pin
gnanavelu12-Apr-07 19:58
gnanavelu12-Apr-07 19:58 
QuestionHow To Load Google Toolbar For Dialog?? Pin
MyNothing12-Apr-07 7:10
MyNothing12-Apr-07 7:10 
How To Load Google Toolbar For Dialog??

Google Toolbar ClsID:{2318C2B1-4965-11d4-9B18-009027A5CD4F}

Code:
bool CShowToolbarDlg::LoadIEToolbar( CString strCLSID )
{	
	CLSID clsid;

	WCHAR wsz[MAX_PATH]; 
	::MultiByteToWideChar(CP_ACP, 0, strCLSID, -1, wsz, MAX_PATH);

	HRESULT hr = CLSIDFromString(wsz, &clsid);	
	if ( hr != NOERROR )	
		return false;	
	
	::CoInitialize (NULL);
	IUnknown* puk;
	hr = ::CoCreateInstance(clsid, NULL, CLSCTX_INPROC_SERVER, IID_IUnknown, (void**)&puk);
	
	if (FAILED(hr))		
		return false;

	IDeskBand *pdb;	
	hr = puk->QueryInterface(IID_IDeskBand, (void**)&pdb);
	
	HWND hBand;
	if (SUCCEEDED(hr))		
	{     
		pdb->GetWindow(&hBand);	
		
		if(hBand == 0)
			return false;
			
		CWnd *pWnd = CWnd::FromHandle(hBand);	
	}		
	
	m_pReBar   =   new   CReBar();   
	m_pReBar->Create(this);   
	
	CWnd *pWnd = CWnd::FromHandle(hBand);
	
	if(pWnd==NULL) return false;
	
	m_pReBar->AddBar(pWnd,NULL,NULL, RBBS_BREAK);		
				
	REBARBANDINFO rbbi;		
	rbbi.cbSize = sizeof(rbbi);			
	rbbi.fMask = RBBIM_CHILDSIZE | RBBIM_IDEALSIZE | RBBIM_SIZE;			
	rbbi.cxMinChild = 0;			
	rbbi.cyMinChild = 10;			
	rbbi.cx = rbbi.cxIdeal = 250;			
	UINT nCount = m_pReBar->GetReBarCtrl().GetBandCount();			
	m_pReBar->GetReBarCtrl().SetBandInfo(nCount-1, &rbbi); 			
	
	return true;
	
}


Error:
pdb->GetWindow(&hBand);
if(hBand == 0)
return false;

Why hBand is NULL??
Questionproblem using msxml in services - using webdav method Pin
ArunkumarSundaravelu12-Apr-07 6:31
ArunkumarSundaravelu12-Apr-07 6:31 
QuestionNot able to add COM DLL reference in VB 6.0 Pin
VinuC12-Apr-07 1:03
VinuC12-Apr-07 1:03 
QuestionRe: Not able to add COM DLL reference in VB 6.0 Pin
sthotakura12-Apr-07 5:52
sthotakura12-Apr-07 5:52 
AnswerRe: Not able to add COM DLL reference in VB 6.0 Pin
VinuC12-Apr-07 18:44
VinuC12-Apr-07 18:44 
QuestionCoCreateInstance return (hr)class not registered Pin
amitmistry_petlad 11-Apr-07 23:43
amitmistry_petlad 11-Apr-07 23:43 
AnswerRe: CoCreateInstance return (hr)class not registered Pin
Roger Stoltz11-Apr-07 23:55
Roger Stoltz11-Apr-07 23:55 
GeneralRe: CoCreateInstance return (hr)class not registered Pin
amitmistry_petlad 12-Apr-07 0:06
amitmistry_petlad 12-Apr-07 0:06 
GeneralRe: CoCreateInstance return (hr)class not registered Pin
Roger Stoltz12-Apr-07 1:39
Roger Stoltz12-Apr-07 1:39 
GeneralRe: CoCreateInstance return (hr)class not registered Pin
amitmistry_petlad 17-Apr-07 2:44
amitmistry_petlad 17-Apr-07 2:44 
GeneralRe: CoCreateInstance return (hr)class not registered Pin
Roger Stoltz17-Apr-07 3:07
Roger Stoltz17-Apr-07 3:07 
QuestionHow to program about Remote Desktop Client Pin
onlysaint10-Apr-07 3:28
onlysaint10-Apr-07 3:28 
QuestionHow to convert a CString to _bstr_t Pin
ganesa moorthy10-Apr-07 2:05
ganesa moorthy10-Apr-07 2:05 
AnswerRe: How to convert a CString to _bstr_t Pin
Roger Stoltz10-Apr-07 3:00
Roger Stoltz10-Apr-07 3:00 
GeneralRe: How to convert a CString to _bstr_t Pin
Steve S10-Apr-07 5:16
Steve S10-Apr-07 5:16 
GeneralRe: How to convert a CString to _bstr_t Pin
Roger Stoltz10-Apr-07 5:35
Roger Stoltz10-Apr-07 5:35 
GeneralRe: How to convert a CString to _bstr_t Pin
Steve S10-Apr-07 21:55
Steve S10-Apr-07 21:55 
QuestionEmpty DACL Pin
San24689-Apr-07 23:44
San24689-Apr-07 23:44 

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.