edit.h 再转换到 VS2010 的问题

本文提供了解决Visual Studio 2010升级DirectX项目时遇到的qedit.h错误的方法,包括特定预处理指令的添加及文件的正确放置路径。

我再升級DirectX專案到VS2010時候
每次都會遇到qedit.h錯誤
解決方法如下,請加入
#pragma include_alias( "dxtrans.h", "qedit.h" )
#define __IDxtCompositor_INTERFACE_DEFINED__
#define __IDxtAlphaSetter_INTERFACE_DEFINED__
#define __IDxtJpeg_INTERFACE_DEFINED__
#define __IDxtKey_INTERFACE_DEFINED__

並且複製
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\qedit.h 到 
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include

 

下面是qedit.h

///////////////////////////////////////////////////////////////////////////////////

#ifndef __qedit_h__
#define __qedit_h__

///////////////////////////////////////////////////////////////////////////////////

#pragma once

///////////////////////////////////////////////////////////////////////////////////

interface
ISampleGrabberCB
:
publicIUnknown
{
virtual STDMETHODIMP SampleCB(doubleSampleTime,IMediaSample*pSample )=0;
virtual STDMETHODIMP BufferCB(doubleSampleTime, BYTE *pBuffer,longBufferLen)=0;
};

///////////////////////////////////////////////////////////////////////////////////

static
const
IID IID_ISampleGrabberCB ={0x0579154A,0x2B53,0x4994,{0xB0,0xD0,0xE7,0x73,0x14,0x8E,0xFF,0x85}};

///////////////////////////////////////////////////////////////////////////////////

interface
ISampleGrabber
:
publicIUnknown
{
virtual HRESULT STDMETHODCALLTYPE SetOneShot( BOOL OneShot)=0;
virtual HRESULT STDMETHODCALLTYPE SetMediaType(const AM_MEDIA_TYPE *pType )=0;
virtual HRESULT STDMETHODCALLTYPE GetConnectedMediaType( AM_MEDIA_TYPE *pType )=0;
virtual HRESULT STDMETHODCALLTYPE SetBufferSamples( BOOL BufferThem)=0;
virtual HRESULT STDMETHODCALLTYPE GetCurrentBuffer(long*pBufferSize,long*pBuffer )=0;
virtual HRESULT STDMETHODCALLTYPE GetCurrentSample(IMediaSample**ppSample )=0;
virtual HRESULT STDMETHODCALLTYPE SetCallback(ISampleGrabberCB*pCallback,longWhichMethodToCallback)=0;
};

///////////////////////////////////////////////////////////////////////////////////

static
const
IID IID_ISampleGrabber ={0x6B652FFF,0x11FE,0x4fce,{0x92,0xAD,0x02,0x66,0xB5,0xD7,0xC7,0x8F}};

///////////////////////////////////////////////////////////////////////////////////

static
const
CLSID CLSID_SampleGrabber ={0xC1F400A0,0x3F08,0x11d3,{0x9F,0x0B,0x00,0x60,0x08,0x03,0x9E,0x37}};

///////////////////////////////////////////////////////////////////////////////////

static
const
CLSID CLSID_NullRenderer ={0xC1F400A4,0x3F08,0x11d3,{0x9F,0x0B,0x00,0x60,0x08,0x03,0x9E,0x37}};

///////////////////////////////////////////////////////////////////////////////////

static
const
CLSID CLSID_VideoEffects1Category ={0xcc7bfb42,0xf175,0x11d1,{0xa3,0x92,0x0,0xe0,0x29,0x1f,0x39,0x59}};

///////////////////////////////////////////////////////////////////////////////////

static
const
CLSID CLSID_VideoEffects2Category ={0xcc7bfb43,0xf175,0x11d1,{0xa3,0x92,0x0,0xe0,0x29,0x1f,0x39,0x59}};

///////////////////////////////////////////////////////////////////////////////////

static
const
CLSID CLSID_AudioEffects1Category ={0xcc7bfb44,0xf175,0x11d1,{0xa3,0x92,0x0,0xe0,0x29,0x1f,0x39,0x59}};

///////////////////////////////////////////////////////////////////////////////////

static
const
CLSID CLSID_AudioEffects2Category ={0xcc7bfb45,0xf175,0x11d1,{0xa3,0x92,0x0,0xe0,0x29,0x1f,0x39,0x59}};

///////////////////////////////////////////////////////////////////////////////////

#endif

///////////////////////////////////////////////////////////////////////////////////

如果哪位电脑上没有这个头文把上面复制下来 保存为qedit.h就可以了

*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Program files\keilv5\ARM\ARMCC\Bin' Build target 'CIMC_GD32_fatfs_driver' compiling file_edit.c... ..\sysFunction\file_edit.c(61): warning: #1-D: last line of file ends without a newline } ..\sysFunction\file_edit.c: 1 warning, 0 errors compiling Function.c... ..\sysFunction\Function.c(146): warning: #223-D: function "systick_get_tick" declared implicitly uint32_t current_tick = systick_get_tick(); ..\sysFunction\Function.c(353): warning: #167-D: argument of type "char *" is incompatible with parameter of type "unsigned char *" OLED_ShowString(0, 0, time_str, 16); ..\sysFunction\Function.c(354): warning: #167-D: argument of type "char *" is incompatible with parameter of type "unsigned char *" OLED_ShowString(0, 16, volt_str, 16); ..\sysFunction\Function.c(62): warning: #177-D: variable "data_file_info" was declared but never referenced static DataFileInfo data_file_info = {0, 0, {0}}; ..\sysFunction\Function.c: 4 warnings, 0 errors linking... .\Objects\CIMC_GD32.axf: Error: L6218E: Undefined symbol day (referred from file_edit.o). .\Objects\CIMC_GD32.axf: Error: L6218E: Undefined symbol hour (referred from file_edit.o). .\Objects\CIMC_GD32.axf: Error: L6218E: Undefined symbol minute (referred from file_edit.o). .\Objects\CIMC_GD32.axf: Error: L6218E: Undefined symbol month (referred from file_edit.o). .\Objects\CIMC_GD32.axf: Error: L6218E: Undefined symbol second (referred from file_edit.o). .\Objects\CIMC_GD32.axf: Error: L6218E: Undefined symbol year (referred from file_edit.o). Not enough information to list image symbols. Not enough information to list load addresses in the image map. Finished: 2 information, 0 warning and 6 error messages. ".\Objects\CIMC_GD32.axf" - 6 Error(s), 5 Warning(s). Target not created. Build Time Elapsed: 00:00:01
最新发布
06-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值