FrameGrabberDemoDlg.obj : error LNK2001: unresolved external symbol _IID_ISampleGrabber
FrameGrabberDemoDlg.obj : error LNK2001: unresolved external symbol _CLSID_SampleGrabber
Debug/FrameGrabberDemo.exe : fatal error LNK1120: 2 unresolved externals
Here is the solution:
1. Open the VS-project in Samples\C++\DirectShow\BaseClasses
2. Compile it as Win32 Release
3. Copy the Release\Strmbase.lib file into your DirectX SDK\lib folder
4. Add #pragma comment(lib,"strmbase.lib") below the #include directives in your header file
--
My solution :
在 project setting 中的 Link 加入 Strmbase.lib
No comments:
Post a Comment