正在编一个视频采集的程序,但有个错误是关于“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
//
///////////////////////////////////////////////////////////////////////////// #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
解决方案 »
- CRect(0,0,0,0)//这是多大啊??????
- 窗口上加一个 Edit 控件,如何为它增加 WM_KEYDOWN,WM_KEYUPD等事件呢?
- 在用QQ旋风下载时监听到下面FTP信息,怎么登陆不成功呢,难道有IP限制?
- 关于内存位图
- 在校生的困惑:是否毕业后真能学到必要的知识
- 多文档标题问题
- 请问哪有windows网络编程书download
- vs2012 MFC中的edit browse control控件有问题?
- dll:显式链接与隐式链接
- 求助给IE绑定DWebBrowserEvents2事件 需要不断调用 ::ObjectFromLresult浏览器才可以正常运行 否则浏览器卡死 有人知道原因吗
- 能不能暂停定时器,或者实现相同的功能?
- 请高手解答一下,宽字符的Dll参数调用怎么会出错?编译不过.
#include <Vfw.h>