我一个vc2010工程调用truemotion-codec解码器,该库是vc6写,总提示载入失败
truemotion-codec解码器
代码如下:
HMODULE h=LoadLibrary("c:\\windows\\system32\\tm2x.dll") if(!h) { AfxMessageBox("解码器载入失败!") }
用 GetLastError 检索下错误的原因是什么。
我估计是因为 tm2x.dll 引用了别的dll,而该dll又没在默认搜索路径下。