[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

DirectX Interop problem

Posted on 2002-07-25
2
Medium Priority
?
934 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

650 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