Solved

DirectX Interop problem

Posted on 2002-07-25
2
932 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 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