--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
MainFrm.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
Test.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
TestDoc.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
E:\mc\Test\TestDoc.cpp(107) : error C2664: 'CFileDialog::CFileDialog' : cannot convert parameter 6 from 'class CTestDoc *const ' to 'class CWnd *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
TestView.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
E:\mc\Test\TestView.cpp(59) : error C2440: 'initializing' : cannot convert from 'int *' to 'class CTestDoc *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\mc\Test\TestView.cpp(105) : error C2556: 'class CTestDoc *__thiscall CTestView::GetDocument(void)' : overloaded function differs only by return type from 'int *__thiscall CTestView::GetDocument(void)'
e:\mc\test\testview.h(20) : see declaration of 'GetDocument'
E:\mc\Test\TestView.cpp(105) : error C2371: 'GetDocument' : redefinition; different basic types
e:\mc\test\testview.h(20) : see declaration of 'GetDocument'
一编译突然出现这么一堆错误,指向的都是系统自动生成的那些函数,到底是怎么回事呢?
Compiling...
MainFrm.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
Test.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
TestDoc.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
E:\mc\Test\TestDoc.cpp(107) : error C2664: 'CFileDialog::CFileDialog' : cannot convert parameter 6 from 'class CTestDoc *const ' to 'class CWnd *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
TestView.cpp
e:\mc\test\testview.h(20) : error C2143: syntax error : missing ';' before '*'
e:\mc\test\testview.h(20) : error C2501: 'CTestDoc' : missing storage-class or type specifiers
e:\mc\test\testview.h(20) : error C2501: 'GetDocument' : missing storage-class or type specifiers
E:\mc\Test\TestView.cpp(59) : error C2440: 'initializing' : cannot convert from 'int *' to 'class CTestDoc *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
E:\mc\Test\TestView.cpp(105) : error C2556: 'class CTestDoc *__thiscall CTestView::GetDocument(void)' : overloaded function differs only by return type from 'int *__thiscall CTestView::GetDocument(void)'
e:\mc\test\testview.h(20) : see declaration of 'GetDocument'
E:\mc\Test\TestView.cpp(105) : error C2371: 'GetDocument' : redefinition; different basic types
e:\mc\test\testview.h(20) : see declaration of 'GetDocument'
一编译突然出现这么一堆错误,指向的都是系统自动生成的那些函数,到底是怎么回事呢?
解决方案 »
- Windows消息中,msg wParam lParam的问题。
- 菜鸟求问FTP被动模式:客户端发送文件一切正常,但是怎么判断发送结束?
- VC高难度操作网页? 内详
- CDaoDatabase 类可以打开odbc的数据库吗?
- 怎么实现WIN下客户端访问SCO UNIX下的ORACLE数据库
- CMainFrame 中为什么不能响应切分视右键弹出的菜单消息?
- 用MFC做实时监控程序,已有一个video window可以调取摄像头,如何添加一个啊!完成多窗口监视
- 用向导生成一个程序后怎样做才能把一个edit中的内容打印出来??
- THAR数组怎么用若干个编辑框显示出来?
- 分割窗口后响应SIZE事件是设置分割窗口大小时出错
- SDK编程中的两个问题
- 什么时候DECLARE_DYNAMIC? 什么时候DECLARE_DYNCREATE?
通常与testview.h成对出现就没问题了