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?