Click here to Skip to main content
15,897,371 members
Home / Discussions / COM
   

COM

 
GeneralMS Office docs Pin
Chna12-Feb-05 20:57
Chna12-Feb-05 20:57 
GeneralRe: MS Office docs Pin
vishalmore13-Feb-05 20:49
vishalmore13-Feb-05 20:49 
Generalerror in createProcessinginstruction Pin
cj_rahul10-Feb-05 22:19
cj_rahul10-Feb-05 22:19 
GeneralEmbedded Pin
Jnewg59-Feb-05 5:33
Jnewg59-Feb-05 5:33 
GeneralRe: MailItem Interface Problem in Outllok Pin
Jnewg59-Feb-05 5:43
Jnewg59-Feb-05 5:43 
Generalimporting/exporting data from c++ to excel Pin
itsh118-Feb-05 5:43
itsh118-Feb-05 5:43 
GeneralSimple Basic, tricky C++ Pin
AttaTroll7-Feb-05 11:36
AttaTroll7-Feb-05 11:36 
GeneralRe: Simple Basic, tricky C++ Pin
Anonymous8-Feb-05 3:17
Anonymous8-Feb-05 3:17 
I assume that MediaEvent and DeliveredEvent are COM interfaces.

To cast a COM interface from one interface into another use QueryInterface.

I.e.

void f(IMediaEvent * p)
{
    if( p != NULL )
    {
        IDeliveredEvent * l_p(NULL);
        HRESULT const l_hr(p->QueryInterface(
            IID_IDeliveredEvent, 
            reinterpret_cast<void**>(&l_p)));

        if( SUCCEEDED(l_hr) )
        {
            // use l_p
            l_p->Release();
        }
    }
}

Using some sort of smart pointer (for instance CComQIPtr) is preferrable.
GeneralRe: Simple Basic, tricky C++ Pin
Anonymous8-Feb-05 10:54
Anonymous8-Feb-05 10:54 
GeneralImporting C# methods Pin
Fragging7-Feb-05 2:19
Fragging7-Feb-05 2:19 
GeneralRe: Importing C# methods Pin
Fragging28-Feb-05 3:10
Fragging28-Feb-05 3:10 
GeneralRe: Importing C# methods Pin
MichaelLeslie30-Apr-08 12:20
MichaelLeslie30-Apr-08 12:20 
GeneralUsing DsoFramer.OCX Pin
Jetli Jerry5-Feb-05 2:57
Jetli Jerry5-Feb-05 2:57 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore7-Feb-05 19:53
vishalmore7-Feb-05 19:53 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry9-Feb-05 0:13
Jetli Jerry9-Feb-05 0:13 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore9-Feb-05 1:11
vishalmore9-Feb-05 1:11 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry11-Feb-05 1:55
Jetli Jerry11-Feb-05 1:55 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore11-Feb-05 2:09
vishalmore11-Feb-05 2:09 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry11-Feb-05 2:51
Jetli Jerry11-Feb-05 2:51 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore13-Feb-05 19:47
vishalmore13-Feb-05 19:47 
GeneralRe: Using DsoFramer.OCX Pin
Jetli Jerry13-Feb-05 20:20
Jetli Jerry13-Feb-05 20:20 
GeneralRe: Using DsoFramer.OCX Pin
vishalmore13-Feb-05 22:44
vishalmore13-Feb-05 22:44 
GeneralCOM DLL instantiated twice Pin
Pascal Pinchauret-Lamothe4-Feb-05 4:33
Pascal Pinchauret-Lamothe4-Feb-05 4:33 
GeneralRe: COM DLL instantiated twice Pin
rwestgraham6-Feb-05 11:50
rwestgraham6-Feb-05 11:50 
GeneralRe: COM DLL instantiated twice Pin
Pascal Pinchauret-Lamothe6-Feb-05 20:41
Pascal Pinchauret-Lamothe6-Feb-05 20: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.