#pragma once// Plugin Specifications
// Version: 1.1#define MAX_NUM_FLAGS 4
#define MAX_NUM_CHOICES 4// Specifies the type of codec in the list
enum _CodecType {CTYPE_NONE, CTYPE_SPEECH, CTYPE_AUDIO, CTYPE_IMAGE, CTYPE_VIDEO};
typedef enum _CodecType CodecType;// Codec info structure
typedef struct _CodecInfo
{
CodecType Type;
char Name[32];
char Extension[8];
char Rates[256];
char Flags[256];
char Choices[256];
} CodecInfo;// Video sample info structure
typedef struct _VideoSampleInfo
{
int Width;
int Height;
float Framerate;
int NumFrames;
} VideoSampleInfo;// Audio sample info structure
typedef struct _AudioSampleInfo
{
int NumChannels;
int SampleRate;
int NumBits;
} AudioSampleInfo;// Encoder parameter structure
typedef struct _CodecParam
{
// Sample settings
VideoSampleInfo VideoSample;
AudioSampleInfo AudioSample;
// File settings
char SrcFile[MAX_PATH];
char TempFile[MAX_PATH];
char DestFile[MAX_PATH];
long OriginalSize;
long EncodedSize; // UI interaction settings
void (*Callback)(void *, float);
void *UserData;
BOOL *Cancel; // Codec settings
int Rate;
BOOL Flag[4];
int Choice;} CodecParam;// Function pointers
typedef void (*GetCodecInfoFPtr)(CodecInfo *);
typedef BOOL (*RunCodecFPtr)(CodecParam *);
/*********************下面是错误*************************/codecplugin.h(10) : error C2011: '_CodecType' : 'enum' type redefinition
error C2011: '_CodecInfo' : 'struct' type redefinition
error C2011: '_VideoSampleInfo' : 'struct' type redefinition
error C2011: '_AudioSampleInfo' : 'struct' type redefinition
error C2011: '_CodecParam' : 'struct' type redefinition
这些错误怎么更改啊~小弟是初学者,望楼下的前辈指教~
// Version: 1.1#define MAX_NUM_FLAGS 4
#define MAX_NUM_CHOICES 4// Specifies the type of codec in the list
enum _CodecType {CTYPE_NONE, CTYPE_SPEECH, CTYPE_AUDIO, CTYPE_IMAGE, CTYPE_VIDEO};
typedef enum _CodecType CodecType;// Codec info structure
typedef struct _CodecInfo
{
CodecType Type;
char Name[32];
char Extension[8];
char Rates[256];
char Flags[256];
char Choices[256];
} CodecInfo;// Video sample info structure
typedef struct _VideoSampleInfo
{
int Width;
int Height;
float Framerate;
int NumFrames;
} VideoSampleInfo;// Audio sample info structure
typedef struct _AudioSampleInfo
{
int NumChannels;
int SampleRate;
int NumBits;
} AudioSampleInfo;// Encoder parameter structure
typedef struct _CodecParam
{
// Sample settings
VideoSampleInfo VideoSample;
AudioSampleInfo AudioSample;
// File settings
char SrcFile[MAX_PATH];
char TempFile[MAX_PATH];
char DestFile[MAX_PATH];
long OriginalSize;
long EncodedSize; // UI interaction settings
void (*Callback)(void *, float);
void *UserData;
BOOL *Cancel; // Codec settings
int Rate;
BOOL Flag[4];
int Choice;} CodecParam;// Function pointers
typedef void (*GetCodecInfoFPtr)(CodecInfo *);
typedef BOOL (*RunCodecFPtr)(CodecParam *);
/*********************下面是错误*************************/codecplugin.h(10) : error C2011: '_CodecType' : 'enum' type redefinition
error C2011: '_CodecInfo' : 'struct' type redefinition
error C2011: '_VideoSampleInfo' : 'struct' type redefinition
error C2011: '_AudioSampleInfo' : 'struct' type redefinition
error C2011: '_CodecParam' : 'struct' type redefinition
这些错误怎么更改啊~小弟是初学者,望楼下的前辈指教~
解决方案 »
- 钢铁洪流”于下周三(2009-12-23)中午开放
- 如何反消息钩子的注入和键盘记录?
- 如何在手机上编写vc++代码,并且编译成vc++程序
- sql2000数据库,我安装SP4补丁,为什么1433端口还没有打开啊,在线等,谁帮我解决一下
- 这可能是MFC设计的小缺陷...
- 创建空的Win32 Application,新增一个main.c文件,写上main(long nPipe),出错
- VC数据库
- 怎么用ado直接读取vfp数据库,而不用建数据源???
- 哪儿能找到OFFICE XP(VS.NET)风格的菜单\TABSHEET\EDIT\LISTCTRL\TREEVIEW类?
- 文本中的一些小问题
- 游戏编程的内存泄露问题--游戏运行一段时间后崩溃
- vs2008
可用
#ifndef codecpluginH
#define codecpluginH
你的代码
....
#endif另一种可能是,你另外的.h文件也定义了_CodecType 等