Solved

DirectX Interop problem

Posted on 2002-07-25
2
928 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

18 Experts available now in Live!

Get 1:1 Help Now