Click here to Skip to main content
15,909,051 members
Home / Discussions / COM
   

COM

 
QuestionHow can I get the coordinates IHTMLLIElement at www.microsoft.com Pin
Alexxx30-Oct-07 21:18
Alexxx30-Oct-07 21:18 
QuestionUsing COM to extract words from a Word2003 Document Pin
ms_wtg330-Oct-07 17:54
ms_wtg330-Oct-07 17:54 
QuestionIStream object of HTTP in ActiveX Web Control Pin
Maruf Maniruzzaman30-Oct-07 17:51
Maruf Maniruzzaman30-Oct-07 17:51 
AnswerRe: IStream object of HTTP in ActiveX Web Control Pin
myshketer5-Nov-07 21:43
myshketer5-Nov-07 21:43 
QuestionGetDesktopItemCount() ofIActive desktop is returing count as '1' even if more than one are present Pin
ROBS12330-Oct-07 0:01
ROBS12330-Oct-07 0:01 
QuestionCOM+ security - IsUserInRole Pin
sthotakura30-Oct-07 0:01
sthotakura30-Oct-07 0:01 
QuestionJavaScript and BHO communication? Pin
conman11029-Oct-07 9:39
conman11029-Oct-07 9:39 
QuestionGet ProgID or CLSID if i have only pointer to some IDispatch interface Pin
IWannaTalk29-Oct-07 0:55
IWannaTalk29-Oct-07 0:55 
How i can get ProgID or CLSID if i have only pointer to some IDispatch interface.
For example:
CComPtr< ISome > spSome;

I was trying to do the next:

CComPtr<itypeinfo> spTypeInfo;
hr = m_spSome->GetTypeInfo( 100, LOCALE_SYSTEM_DEFAULT, &spTypeInfo );
if( FAILED( hr = PrepareFuncInfo() ) )
{
return hr;
}
TYPEATTR *pattr = NULL;
hr = spTypeInfo->GetTypeAttr( &pattr );
if( FAILED( hr = PrepareFuncInfo() ) )
{
spTypeInfo.Release();
return hr;
}
CComPtr<itypeinfo> spTypeInfo2;
HREFTYPE hrType = 0;
while( SUCCEEDED( hr = spTypeInfo->GetRefTypeInfo( hrType, &spTypeInfo2 ) ) )
{
TYPEATTR *pattr2 = NULL;
hr = spTypeInfo2->GetTypeAttr( &pattr2 );
if( FAILED( hr = PrepareFuncInfo() ) )
{
spTypeInfo2.Release();
spTypeInfo.Release();
return hr;
}
if( pattr2->typekind == TKIND_COCLASS )
{
BSTR bsCLSID;
ProgIDFromCLSID( pattr2->guid, &bsCLSID );
m_bsProgIDName = bsCLSID;
spTypeInfo2.Release();
spTypeInfo.Release();
return S_OK;
}
hrType++;
}

But it doesn't work in variant, when i have in type lib more then 1 coclass Smile | :)
I can to do this using type lib, but i want to find another way for solving this problem. If it's exists - please tell? how i can to do this Smile | :) Because i so tired with this...... Smile | :)

ISQ 469907496

AnswerRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
Mike Dimmick29-Oct-07 2:36
Mike Dimmick29-Oct-07 2:36 
GeneralRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
IWannaTalk29-Oct-07 3:43
IWannaTalk29-Oct-07 3:43 
GeneralRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
CPallini29-Oct-07 5:39
mveCPallini29-Oct-07 5:39 
GeneralRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
User 21559729-Oct-07 6:22
User 21559729-Oct-07 6:22 
GeneralRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
IWannaTalk29-Oct-07 6:33
IWannaTalk29-Oct-07 6:33 
GeneralRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
User 21559729-Oct-07 6:47
User 21559729-Oct-07 6:47 
GeneralRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
IWannaTalk29-Oct-07 6:52
IWannaTalk29-Oct-07 6:52 
GeneralRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
User 21559729-Oct-07 7:26
User 21559729-Oct-07 7:26 
GeneralRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
IWannaTalk29-Oct-07 7:40
IWannaTalk29-Oct-07 7:40 
GeneralRe: Get ProgID or CLSID if i have only pointer to some IDispatch interface Pin
Nathan Holt at EMOM29-Oct-07 9:42
Nathan Holt at EMOM29-Oct-07 9:42 
QuestionHow I Can have the id for html control in webpage Pin
Thaer Hamael25-Oct-07 11:59
Thaer Hamael25-Oct-07 11:59 
AnswerRe: How I Can have the id for html control in webpage Pin
User 21559725-Oct-07 12:10
User 21559725-Oct-07 12:10 
QuestionMake a Container for RICHTX32.OCX Pin
AhmedOsamaMoh24-Oct-07 7:10
AhmedOsamaMoh24-Oct-07 7:10 
QuestionPowerpoint Automation, process won't quit Pin
T-Smooth23-Oct-07 9:43
T-Smooth23-Oct-07 9:43 
QuestionVST host in C# Pin
newtownz23-Oct-07 4:32
newtownz23-Oct-07 4:32 
AnswerRe: VST host in C# [modified] Pin
Baltoro25-Oct-07 10:39
Baltoro25-Oct-07 10:39 
AnswerRe: VST host in C# Pin
Obiwan Jacobi6-Sep-09 19:17
Obiwan Jacobi6-Sep-09 19:17 

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.