关于 “missing storage-class or type specifiers”
正在编一个视频采集的程序,但有个错误是关于“missing storage-class or type specifiers”的,不知该如何修改,望大家伸出援手:)
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__9AA70358_215F_4222_8F27_ACB75F760999__INCLUDED_)
#define AFX_MAINFRM_H__9AA70358_215F_4222_8F27_ACB75F760999__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct
{
int headsize;
char buffer[32000];
}DIBINFO,*PDIBINFO;
DIBINFO m_dibinfo;
CFrameWnd m_wndSource;
HWND m_hWndCap;
CAPDRIVERCAPS m_caps;
void ChangeSize();
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
// Generated message map functions
public:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnClose();
afx_msg void OnPreview();
afx_msg void OnSource();
afx_msg void OnFormat();
afx_msg void OnCapture();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__9AA70358_215F_4222_8F27_ACB75F760999__INCLUDED_)
AVICapVideo.cpp
c:\program files\microsoft visual studio\myprojects\avicapvideo\mainfrm.h(25) : error C2146: syntax error : missing ';' before identifier 'm_caps'
c:\program files\microsoft visual studio\myprojects\avicapvideo\mainfrm.h(25) : error C2501: 'CAPDRIVERCAPS' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\avicapvideo\mainfrm.h(25) : fatal error C1004: unexpected end of file found
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__9AA70358_215F_4222_8F27_ACB75F760999__INCLUDED_)
#define AFX_MAINFRM_H__9AA70358_215F_4222_8F27_ACB75F760999__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct
{
int headsize;
char buffer[32000];
}DIBINFO,*PDIBINFO;
DIBINFO m_dibinfo;
CFrameWnd m_wndSource;
HWND m_hWndCap;
CAPDRIVERCAPS m_caps;
void ChangeSize();
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
// Generated message map functions
public:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnClose();
afx_msg void OnPreview();
afx_msg void OnSource();
afx_msg void OnFormat();
afx_msg void OnCapture();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__9AA70358_215F_4222_8F27_ACB75F760999__INCLUDED_)
AVICapVideo.cpp
c:\program files\microsoft visual studio\myprojects\avicapvideo\mainfrm.h(25) : error C2146: syntax error : missing ';' before identifier 'm_caps'
c:\program files\microsoft visual studio\myprojects\avicapvideo\mainfrm.h(25) : error C2501: 'CAPDRIVERCAPS' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\avicapvideo\mainfrm.h(25) : fatal error C1004: unexpected end of file found
...全文
相关推荐
missing storage-class or type specifiers错误
在编程过程中,我们时常会遇到编译错误,其中“missing storage-class or type specifiers”是一个常见的C或C++编译错误。
vc6.0的扩展文件 part2
很多人在用vc6.0编译某些程序时总是出现错误。大多数情况可能是在使用directx8.0或者更新的版本时出现的,比如:d:\microsoft directx sdk (august 2008)\i
vc6.0的扩展文件 part1
很多人在用vc6.0编译某些程序时总是出现错误。大多数情况可能是在使用directx8.0或者更新的版本时出现的,比如:d:\microsoft directx sdk (august 2008)\i
ZendFramework中文文档
1. Introduction to Zend Framework 1.1. 概述 1.2. 安装 2. Zend_Acl 2.1. 简介 2.1.1. 关于资源(Resource) 2.1.2. 关
基于Matlab图像识别技术的隐形眼镜镜片边缘缺陷检测.zip
1.版本:matlab2014a/2019b/2024b 2.附赠案例数据可直接运行。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。


