第一个项目的错误是“编程微软指导数字视频和电视”。 [英] Errors with the first project in "programming microsoft directshow for digital video and television "

查看:86
本文介绍了第一个项目的错误是“编程微软指导数字视频和电视”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是学习DirectShow的初学者。在本书中构建第一个项目时:" programming microsoft

directshow for digital video and television" 我收到错误:


e:\ KSTN \\ \\做一个1 \ Hoc Directx \\\drender \dsrender \\\ ndrender.cpp(14):错误C3861:'GetMediaFileName':找不到标识符,即使是依赖于参数的查找

e:\ KSTN \做一个1 \ Hoc Directx \\\drender \dsrender\dsrender.cpp(19):错误C3861:'CoInitializeEx':找不到标识符,即使是依赖于参数的查找

e:\ KSTN \做一个1 \ Hoc Directx \\\ trender \\\drender \ thedrender.cpp (64):错误C2065:'g_PathFileName':未声明的标识符

e:\ KSTN \ do 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 'SaveGraphFile':找不到标识符,即使是依赖于参数的查找


这是我的代码:

解决方案

应该是显而易见的,不是吗?您缺少带有所有包含的.h,可能还有一些变量定义,以及.cpp中的许多函数,例如GetMediaFIleName()和SaveGraphFile()。最后完全是您指定的章节中定义的这一个,你应该自己发现吧...


 I'm a beginer in learning DirectShow. When building the first project in the book :"programming microsoft

 directshow for digital video and television "  I got errors:

e:\KSTN\Do an 1\Hoc Directx\dsrender\dsrender\dsrender.cpp(14): error C3861: 'GetMediaFileName': identifier not found, even with argument-dependent lookup

e:\KSTN\Do an 1\Hoc Directx\dsrender\dsrender\dsrender.cpp(19): error C3861: 'CoInitializeEx': identifier not found, even with argument-dependent lookup

e:\KSTN\Do an 1\Hoc Directx\dsrender\dsrender\dsrender.cpp(64): error C2065: 'g_PathFileName' : undeclared identifier

e:\KSTN\Do an 1\Hoc Directx\dsrender\dsrender\dsrender.cpp(91): error C3861: 'SaveGraphFile': identifier not found, even with argument-dependent lookup


Here is my code:

解决方案

Should be obvious, no? You are missing the .h with all includes, and probably some variables definitions, and also a number of functions in the .cpp e.g. GetMediaFIleName() and SaveGraphFile(). This last one is entirely defined in the chapter you indicate, you should have spotted it yourself...


这篇关于第一个项目的错误是“编程微软指导数字视频和电视”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆