directshow

1) baseclasses 能编译成功,因为 additional include directories : .(当前目录作为sys目录,可以使用include<>,而且多个头文件中类型相互认识)

2) 如果是动态dll,则还要strmiids.lib winmm.lib

3)如果当前dll是一个filter,一切OK,但是如果不是一个filter,没有定义CFactoryTemplate g_Templates,和int g_cTemplates ,需要自己造假如下:

CFactoryTemplate g_Templates[]=
{ { L""
, NULL
, NULL
, NULL
, NULL
}
};

int g_cTemplates = sizeof(g_Templates)/sizeof(g_Templates[0]);

4)参考

http://www.codeguru.com/forum/showthread.php?s=&postid=847266

 

http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=868592&SiteID=1

 

5)my test

 http://www.kaixin001.com/file/file.php?verify=283477_1008_283477_1227712883_3c20e9475d929052b89c978198b946a9&fileid=2025341&uid=283477

posted @ 2008-11-26 23:17  梦在天涯  阅读(200)  评论(0编辑  收藏  举报