图书管理(VC)系统出了许多错,大哥们帮忙看看怎么回事!谢谢!
这是出错的提示:
--------------------Configuration: 图书馆管理系统 - Win32 Debug--------------------
Compiling...
MainFrm.cpp
F:\图书馆管理系统\MainFrm.cpp(20) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(20) : error C2248: 'messageMap' : cannot access protected member declared in class 'CFrameWnd'
d:\microsoft visual studio\vc98\mfc\include\afxwin.h(3318) : see declaration of 'messageMap'
F:\图书馆管理系统\MainFrm.cpp(20) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(20) : error C2270: 'GetMessageMap' : modifiers not allowed on nonmember functions
F:\图书馆管理系统\MainFrm.cpp(20) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(20) : error C2065: 'messageMap' : undeclared identifier
F:\图书馆管理系统\MainFrm.cpp(20) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(20) : error C2373: 'messageMap' : redefinition; different type modifiers
F:\图书馆管理系统\MainFrm.cpp(20) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(20) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(20) : error C2065: '_messageEntries' : undeclared identifier
F:\图书馆管理系统\MainFrm.cpp(20) : error C2109: subscript requires array or pointer type
F:\图书馆管理系统\MainFrm.cpp(20) : error C2102: '&' requires l-value
F:\图书馆管理系统\MainFrm.cpp(20) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(20) : error C2040: '_messageEntries' : 'const struct AFX_MSGMAP_ENTRY []' differs in levels of indirection from 'int'
F:\图书馆管理系统\MainFrm.cpp(24) : error C2065: 'OnCreate' : undeclared identifier
F:\图书馆管理系统\MainFrm.cpp(24) : error C2440: 'type cast' : cannot convert from 'int *' to 'int (__thiscall CWnd::*)(struct tagCREATESTRUCTA *)'
There is no context in which this conversion is possible
F:\图书馆管理系统\MainFrm.cpp(39) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(43) : warning C4508: 'CMainFrame' : function should return a value; 'void' return type assumed
F:\图书馆管理系统\MainFrm.cpp(45) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(46) : error C2084: function 'int __cdecl CMainFrame(void)' already has a body
F:\图书馆管理系统\MainFrm.cpp(49) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(50) : error C2373: 'OnCreate' : redefinition; different type modifiers
F:\图书馆管理系统\MainFrm.cpp(51) : error C2248: 'OnCreate' : cannot access protected member declared in class 'CFrameWnd'
d:\microsoft visual studio\vc98\mfc\include\afxwin.h(3278) : see declaration of 'OnCreate'
F:\图书馆管理系统\MainFrm.cpp(51) : error C2352: 'CFrameWnd::OnCreate' : illegal call of non-static member function
d:\microsoft visual studio\vc98\mfc\include\afxwin.h(3278) : see declaration of 'OnCreate'
F:\图书馆管理系统\MainFrm.cpp(54) : error C2065: 'm_wndToolBar' : undeclared identifier
F:\图书馆管理系统\MainFrm.cpp(54) : error C2228: left of '.CreateEx' must have class/struct/union type
F:\图书馆管理系统\MainFrm.cpp(54) : error C2673: 'OnCreate' : global functions do not have 'this' pointers
F:\图书馆管理系统\MainFrm.cpp(56) : error C2228: left of '.LoadToolBar' must have class/struct/union type
F:\图书馆管理系统\MainFrm.cpp(62) : error C2065: 'm_wndStatusBar' : undeclared identifier
F:\图书馆管理系统\MainFrm.cpp(62) : error C2228: left of '.Create' must have class/struct/union type
F:\图书馆管理系统\MainFrm.cpp(62) : error C2673: 'OnCreate' : global functions do not have 'this' pointers
F:\图书馆管理系统\MainFrm.cpp(63) : error C2228: left of '.SetIndicators' must have class/struct/union type
F:\图书馆管理系统\MainFrm.cpp(72) : error C2228: left of '.EnableDocking' must have class/struct/union type
F:\图书馆管理系统\MainFrm.cpp(74) : error C2065: 'DockControlBar' : undeclared identifier
F:\图书馆管理系统\MainFrm.cpp(79) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(81) : error C2248: 'PreCreateWindow' : cannot access protected member declared in class 'CFrameWnd'
d:\microsoft visual studio\vc98\mfc\include\afxwin.h(3258) : see declaration of 'PreCreateWindow'
F:\图书馆管理系统\MainFrm.cpp(81) : error C2352: 'CFrameWnd::PreCreateWindow' : illegal call of non-static member function
d:\microsoft visual studio\vc98\mfc\include\afxwin.h(3258) : see declaration of 'PreCreateWindow'
F:\图书馆管理系统\MainFrm.cpp(93) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(94) : error C2270: 'AssertValid' : modifiers not allowed on nonmember functions
F:\图书馆管理系统\MainFrm.cpp(95) : error C2352: 'CFrameWnd::AssertValid' : illegal call of non-static member function
d:\microsoft visual studio\vc98\mfc\include\afxwin.h(3230) : see declaration of 'AssertValid'
F:\图书馆管理系统\MainFrm.cpp(98) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\MainFrm.cpp(99) : error C2270: 'Dump' : modifiers not allowed on nonmember functions
F:\图书馆管理系统\MainFrm.cpp(100) : error C2352: 'CFrameWnd::Dump' : illegal call of non-static member function
d:\microsoft visual studio\vc98\mfc\include\afxwin.h(3231) : see declaration of 'Dump'
图书馆管理系统.cpp
F:\图书馆管理系统\图书馆管理系统.cpp(79) : error C2653: 'CMainFrame' : is not a class or namespace name
F:\图书馆管理系统\图书馆管理系统.cpp(79) : error C2065: 'classCMainFrame' : undeclared identifier
F:\图书馆管理系统\图书馆管理系统.cpp(147) : error C2065: 'IDC_BUTTON4' : undeclared identifier
F:\图书馆管理系统\图书馆管理系统.cpp(165) : error C2065: 'readerid' : undeclared identifier
F:\图书馆管理系统\图书馆管理系统.cpp(167) : error C2065: 'bookid' : undeclared identifier
F:\图书馆管理系统\图书馆管理系统.cpp(168) : error C2065: 'r' : undeclared identifier
F:\图书馆管理系统\图书馆管理系统.cpp(168) : error C2065: 'ReaderDB' : undeclared identifier
F:\图书馆管理系统\图书馆管理系统.cpp(168) : error C2228: left of '.query' must have class/struct/union type
F:\图书馆管理系统\图书馆管理系统.cpp(169) : error C2065: 'b' : undeclared identifier
F:\图书馆管理系统\图书馆管理系统.cpp(169) : error C2065: 'BookDB' : undeclared identifier
F:\图书馆管理系统\图书馆管理系统.cpp(169) : error C2228: left of '.query' must have class/struct/union type
F:\图书馆管理系统\图书馆管理系统.cpp(180) : error C2227: left of '->borrowbook' must point to class/struct/union
F:\图书馆管理系统\图书馆管理系统.cpp(185) : error C2227: left of '->borrowbook' must point to class/struct/union
F:\图书馆管理系统\图书馆管理系统.cpp(185) : error C2227: left of '->getno' must point to class/struct/union
F:\图书馆管理系统\图书馆管理系统.cpp(197) : error C2228: left of '.query' must have class/struct/union type
F:\图书馆管理系统\图书馆管理系统.cpp(203) : error C2228: left of '.query' must have class/struct/union type
F:\图书馆管理系统\图书馆管理系统.cpp(209) : error C2227: left of '->retbook' must point to class/struct/union
F:\图书馆管理系统\图书馆管理系统.cpp(210) : error C2227: left of '->retbook' must point to class/struct/union
F:\图书馆管理系统\图书馆管理系统.cpp(210) : error C2227: left of '->getno' must point to class/struct/union
F:\图书馆管理系统\图书馆管理系统.cpp(218) : error C2228: left of '.readerdata' must have class/struct/union type
F:\图书馆管理系统\图书馆管理系统.cpp(225) : error C2228: left of '.bookdata' must have class/struct/union type
Generating Code...
Error executing cl.exe.
图书馆管理系统.exe - 64 error(s), 1 warning(s)
问题点数:80、回复次数:5Top
1 楼aa3000(杀手K)回复于 2006-09-11 15:03:13 得分 0
没有头文件吧,可能是楼主用的 VC 版本问题。Top
2 楼sky3464()回复于 2006-09-11 15:10:53 得分 0
应该是头文件的问题吧 ,我前两天也出了这种情况,仔细检查一下。Top
3 楼jkgl548()回复于 2006-09-11 17:11:39 得分 0
#include "MainFrm.h"
it's so manyTop
4 楼SoLike(思危)回复于 2006-09-11 20:29:59 得分 0
应该是少了
#include "MainFrm.h"Top
5 楼vccodeer(你好)回复于 2006-09-11 20:37:11 得分 0
用vc开发数据库还有没有优势?Top




