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

CoCreateInstance Fails using LeadTools MultiMedia Com Interface

CoCreateInstance Fails using LeadTools MultiMedia Com Interface

CoCreateInstance Fails using LeadTools MultiMedia Com Interface

Using LeadTools v.13 with VC++ 6.0 sp6 on XP Pro sp1, I am getting E_NOINTERFACE (0x80004002) When I try to create the multimedia capture interface as follows:

hr = CoCreateInstance(CLSID_ltmmCapture, NULL, CLSCTX_INPROC_SERVER, IID_IltmmCapture, (void**) &m_capture);

It used to work.  Now it fails in both the debug and release builds.  Other third-party COM objects work fine.

I downloaded the latest patches to get the most recent ltmm.h, ltmmuuid.lib and ltmm_n.dll (  I unregistered the old dll (regsvr32 /u ltmm_n.dll), copied the new dll to \windows\system32 and then registered it (regsvr32 ltmm_n.dll).  I searched the entire hard drive to make sure there is only one copy of ltmm.h, ltmmuuid.lib, and ltmm_n.dll.  Also, ltmm.lic is in \windows\system32.

The raster imaging dll's work fine, but when it comes time to use the multimedia capture interface it fails.

Any help will be greatly appreciated.

RE: CoCreateInstance Fails using LeadTools MultiMedia Com Interface

as far as I know. you ask for IID_IUnknown first in the call to CoCreateInstance.

IUnknown* pUnknown = NULL;

hr = CoCreateInstance(CLSID_ltmmCapture, NULL, CLSCTX_INPROC_SERVER, IID_IUnknown, (void**) &pUnknown);

hr = pUnknown->QueryInterface(IID_xxxxxx, (void**)&m_capture);


Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...

RE: CoCreateInstance Fails using LeadTools MultiMedia Com Interface

You are right.  I thought so, too. But the leadtools example shows it using IID_IltmmCapture, which is defined in one of their headers, instead of IID_IUnknown.  The strange thing is that it was working.

I posted the same problem in LeadTools moderated Mutlimedia forum but after a week there was no reply.  I am hoping I can get a conversation going here with suggestions.  Leadtools has a great imaging libaray but the support stinks.

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