• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 936
  • Last Modified:

DirectX Interop problem

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
anthony_glenwright
Asked:
anthony_glenwright
1 Solution
 
anthony_glenwrightAuthor Commented:
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
 
ComTechCommented:
User has answered his onw question, will place in PAQ, and refund the points.

Regards,
ComTech
CS Admin @ EE
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now