I'm new to c# and I'm trying to write a movie database that retrieves data from IMDB. For the codecs I found MediaInfo. The included example in winforms works fine, but when I try to use the library in my console application I get the error "Unable to load MediaInfo library".
I did:
- Put MediaInfo.dll in \bin\debug
- Included the file MediaInfoDLL.cs in my project
- In the source code added "using MediaInfoLib;"
So why do I get the error ?
Sourcecode:
class Program
{
[STAThread]
static void Main(string[] args)
{
var mi = new MediaInfo();
mi.Open(@"H:\\watch\\Fitzcarraldo.mkv");
Console.WriteLine(mi.Inform());
Console.ReadKey();
mi.Close();
}
}