装了DXSDK9,加了下面的连接库
strmbasd.lib
#include <atlbase.h>
#include <windows.h>
#include <dshow.h>
#include <stdio.h>
工程中用了
ICaptureGraphBuilder2 * g_pCapture = NULL;   hr = CoCreateInstance (CLSID_CaptureGraphBuilder2 , NULL, CLSCTX_INPROC,
                           IID_ICaptureGraphBuilder2, (void **) &g_pCapture);
编译时出现下面错误
error LNK2001: unresolved external symbol _CLSID_CaptureGraphBuilder2
请问还缺少什么东西?

解决方案 »

  1.   

    连接那些库文件呢?我上面给出那些够不够阿?
    你把需要连接库文件给我寄过来好吗?
    我邮箱 :[email protected]
      

  2.   

    连接那些库文件呢?我上面给出那些够不够阿?
    你把需要连接库文件给我寄过来好吗?
    我邮箱 :[email protected]
      

  3.   

    我在DirectX9.0SDK路径下找到
    "uuids.h" 里面有_CLSID_CaptureGraphBuilder和_CLSID_CaptureGraphBuilder2
    <dshow.h>并且把这两个文件同时拷贝
    到当前工程文件夹里,并且
    Header Files 也同时添加了此两个文件
    但编译时还是出现
    playcap.obj : error LNK2001: unresolved external symbol _CLSID_CaptureGraphBuilder2
    playcap.obj : error LNK2001: unresolved external symbol _IID_ICaptureGraphBuilder2
    Debug/PlayCap.exe : fatal error LNK1120: 2 unresolved externals
    错误阿,调试工程为:
    C:\DXSDK\Samples\C++\DirectShow\Capture\PlayCap
      

  4.   

    可能需要重新的编译一下 baseclass,然后把编译出来的basd。lib拿出来用就可以了