作者peyton87 (小培培)
看板Programming
标题Re: DirectShow函数回传的错误码,如何查询它的含义?
时间Tue Jul 11 12:26:53 2006
※ 引述《peyton87 (小培培)》之铭言:
: 我最近在研究 WinCE 5.0 上面的 DirectShow,
: 一直看 MSDN 的文件,但是感觉看得不是很懂...
: 我试着建立 Graph,使用下面的命令:
: 1 hr = pFilterGraph->RenderFile(L"\\Storage Card\\2.wmv", NULL);
: 2 AMGetErrorText(hr, buf, 100);
: 3 NotifyMessage( MESSAGE_INFO, buf ); // show text on GUI
: 第1行的 hr 值是 -2147220968,我发现有一个函式 AMGetErrorText 可以查
: 错误讯息,但是编译後无法连结... 没办法执行。讯息如下:
: graphmanager.obj : error LNK2019: 无法解析的外部符号 AMGetErrorTextW 在函式
: "private: long __cdecl CGraphManager::CreateCaptureGraphInternal(void)"
: (?CreateCaptureGraphInternal@CGraphManager@@AAAJXZ) 中被参考
: Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/CameraCapture.exe : fatal
: error LNK1120: 1 个无法解析的外部符号
: 我在看的程式是 Windows Mobile 5.0 Pocket PC SDK: cameracapture 范例,
: 希望对 DirectShow 了解的朋友给我个帮助,谢谢。
我发现 MSDN 的这篇文章写到:
http://0rz.net/851zT
Library file Description
Quartz.lib Exports the AMGetErrorText function. If you do not call this
function, this library is not required.
可是,在 SDK 目录中没看见 quartz.lib?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.124.181.123