Solved

DirectX Interop problem

Posted on 2002-07-25
2
929 Views
Last Modified: 2012-08-13
I'm trying to use the "DexterLib" Directshow editing component in .NET.  (QEDIT.DLL)

Whenever I execute the line:

myMediaDet = New DexterLib.MediaDet

I get a "Run-time exception thrown : System.IO.FileLoadException - A dynamic
link library (DLL) initialization routine failed.".  Normally, I would expect this to be a dud install of some kind, but I can use the exact same code in VB6, and it works 100%, so it *must* be an interop problem.

I've tried using VS.NET to create an interop assembly, and have also tried using tlbimp to do it - same results.

I have also tried code like:

myMediaDet = Activator.CreateInstance(Type.GetTypeFromCLSID(New System.Guid("65BD0711-24D2-4FF7-9324-ED2E5D3ABAFA"), True))

With exactly the same error.  I'm using Windows XP.

Can anyone help?
Thanks,
0
Comment
Question by:anthony_glenwright
2 Comments
 
LVL 6

Author Comment

by:anthony_glenwright
ID: 7177055
Fixed it myself - It was running inside a ASP.NET application, and was failing because of COM security issues.  When I added code to impersonate another user, all worked fine.
0
 

Accepted Solution

by:
ComTech earned 0 total points
ID: 7177597
User has answered his onw question, will place in PAQ, and refund the points.

Regards,
ComTech
CS Admin @ EE
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now