vs2012无法加载MediaInfo.dll
用vs2012建了个工程简单测试MediaInfo,但是一直提示无法加载MediaInfo.dll,,代码如下,MediaInfo.dll文件我是和exe文件放在一块的,请问这是什么原因了? 我用mediainfo源码中的HowToUse_Dll.cpp 测试也是这个错误。
#include "MediaInfoDLL.h"
#include <iostream>
#include <iomanip>
using namespace MediaInfoDLL;
int main (int /*argc*/, Char * /*argv[]*/)
{
MediaInfo MI;
String width,height;
MI.Open(__T("302.ts"));
width = MI.Get(stream_t::Stream_Video,0,__T("Width")).c_str();
height = MI.Get(stream_t::Stream_Video,0,__T("Height")).c_str();
std::wcout<<width<<" "<<height;
return 0;
}