Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CoCreateInstance returns CO_E_NOTINITIALIZED

1,383 views
Skip to first unread message

Sandhya Sringar

unread,
Jul 17, 1998, 3:00:00 AM7/17/98
to
Hello,

My call to CoCreateInstance is returning me CO_E_NOTINITIALIZED
(800401F0),
which is not a documented return value.
Does any one know what this means?
My actual call is as follows:

HRESULT hr;
IMediaControl *pMC = NULL;

// We need to use a codec filter via Filter Graph Manager
// Instantiate the Filter Graph Manager first

hr = CoCreateInstance( (REFCLSID)CLSID_FilterGraph, // class identifier
for the FGM
NULL,// pointer to outer iUnkown (NULL ; FG is not part
of an aggregate
CLSCTX_INPROC,// code runs in the same process as
the caller
IID_IMediaControl,
(void **)&pMC);


thanks,

Sandhya K Sringar (sand...@ogenic.com.au)

Rick Genter

unread,
Jul 17, 1998, 3:00:00 AM7/17/98
to
You have to call CoInitialize() before you call CoCreateInstance(). Also,
make sure you call CoUninitialize() before your program exits.
--
Rick Genter
Principal Technical Staff
Mitsubishi Electric ITA
<mailto:genter at merl.com>

Sandhya Sringar wrote in message <6ome6e$4m8$1...@news.iinet.net.au>...

0 new messages