×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Damn Registering...

Damn Registering...

Damn Registering...

(OP)
Hi,

I have a problem with DirectShow, in running through Microsoft's basic Video Control tutorials.

These are my global declerations, which I have checked, and are sure they are right:

static const UUID CLSID_MSVIDCTL = {0xB0EDF162, 0x910A, 0x11D2, {0xB6, 0x32, 0x00, 0xC0, 0x4F, 0x79, 0x49, 0x8E}};
static const UUID CLSID_SystemTuningSpaces = {0x164EDA5, 0x6A8F, 0x11D1, {0x9A, 0xA7, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}};

This is my actual code:

HRESULT hr = S_OK;

hr = CoInitialize(NULL);

CComPtr<ITuningSpaceContainer> pTuningSpaceContainer;

hr = CoCreateInstance(CLSID_SystemTuningSpaces, NULL, CLSCTX_INPROC_SERVER, __uuidof(ITuningSpaceContainer), (void **) &pTuningSpaceContainer);

CComPtr<IMSVidCtl> pVidCtl;

hr = CoCreateInstance(CLSID_MSVIDCTL, NULL, CLSCTX_INPROC_SERVER, __uuidof(IMSVidCtl), (void **) &pVidCtl);


It fails on every CoCreateInstance to create one. I get the error message that hr = 0x80040154 Class not registered.

I'm sure I've registered everything I need, anything I might have overlooked?

Thanks,
Dan

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close