关于 “missing storage-class or type specifiers”

dazhu3 2008-05-21 10:12:26
正在编一个视频采集的程序,但有个错误是关于“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

...全文
411 12 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhangyanmei1986 2010-02-01
  • 打赏
  • 举报
回复
我也遇到这样的问题~~~~,不知道怎么解决呢!哪个高手能帮帮忙呢?'CAPDRIVERCAPS' : missing storage-class or type specifiers问题是出在哪呢?
dazhu3 2008-05-21
  • 打赏
  • 举报
回复
恩,已经解决了,错误在其它地方,还是谢谢healer_kx 和Mackz 了:)
dazhu3 2008-05-21
  • 打赏
  • 举报
回复
试了在MainFrm.h加了#include "vfw.h"还是不行,错误更多了~~~
菜牛 2008-05-21
  • 打赏
  • 举报
回复
Header: Declared in Vfw.h.
dazhu3 2008-05-21
  • 打赏
  • 举报
回复
呵呵呵,菜鸟一只,还不知要加分,不好意思啊,如何能获得分数?
healer_kx 2008-05-21
  • 打赏
  • 举报
回复
。。。 。。。为啥没分?
dazhu3 2008-05-21
  • 打赏
  • 举报
回复
那CAPDRIVERCAPS 这个结构体变量到底应该如何定义呢?就这一个错了好无奈啊~
healer_kx 2008-05-21
  • 打赏
  • 举报
回复
MainFrm.h,显然没有啊。。。
dazhu3 2008-05-21
  • 打赏
  • 举报
回复
在MainFrm.h中吧,不知道你是不是要问这个:)
healer_kx 2008-05-21
  • 打赏
  • 举报
回复
CAPDRIVERCAPS

这个结构在那个文件定义的?
dazhu3 2008-05-21
  • 打赏
  • 举报
回复
什么include 的头文件?
healer_kx 2008-05-21
  • 打赏
  • 举报
回复
include 的头文件给弄没有了吧?

16,548

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • AIGC Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧