请教了:

701129 2004-08-09 07:31:03
请教了:
我加入代码后工程运行以后提示错误如下,请问我应该怎样改才能除去错误提示,使程序运行正常???请大侠一定帮忙看看,谢谢!!!

工程如下

http://www.vchelp.net/ASP/cdf_pic/200405/subject_1_103832.rar

提示错误如下


Configuration: 货物管理系统 - Win32 Debug--------------------
Compiling...
货物管理系统.cpp
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(27) :

error C2146: syntax error : missing ';' before identifier 'm_pConnection'
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(27) :

error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(27) :

error C2501: 'm_pConnection' : missing storage-class or type specifiers
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(28) :

error C2146: syntax error : missing ';' before identifier 'm_pRecordset'
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(28) :

error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(28) :

error C2501: 'm_pRecordset' : missing storage-class or type specifiers
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(63) :

error C2065: 'm_pConnection' : undeclared identifier
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(63) :

error C2228: left of '.CreateInstance' must have class/struct/union type
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(66) :

error C2227: left of '->Open' must point to class/struct/union
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(66) :

error C2065: 'adModeUnknown' : undeclared identifier
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(72) :

error C2061: syntax error : identifier '_com_error'
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(72) :

error C2310: catch handlers must specify one type
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(75) :

error C2065: 'e' : undeclared identifier
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(75) :

error C2228: left of '.ErrorMessage' must have class/struct/union type
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(78) :

error C2317: 'try' block starting on line '62' has no catch handlers
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(78) :

error C2065: 'm_pRecordset' : undeclared identifier
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(78) :

error C2228: left of '.CreateInstance' must have class/struct/union type
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(78) :

error C2065: 'Recordset' : undeclared identifier
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统.cpp(103)

: error C2227: left of '->Close' must point to class/struct/union
货物管理系统Dlg.cpp
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(27) :

error C2146: syntax error : missing ';' before identifier 'm_pConnection'
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(27) :

error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(27) :

error C2501: 'm_pConnection' : missing storage-class or type specifiers
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(28) :

error C2146: syntax error : missing ';' before identifier 'm_pRecordset'
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(28) :

error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(28) :

error C2501: 'm_pRecordset' : missing storage-class or type specifiers
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp

(308) : error C2601: 'OnBuyAdd' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp

(316) : error C2601: 'OnSaleAdd' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp

(325) : error C2601: 'OnBillShow' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp

(358) : error C2601: 'OnExitWindow' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp

(361) : fatal error C1004: unexpected end of file found
BillDlg.cpp
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(27) :

error C2146: syntax error : missing ';' before identifier 'm_pConnection'
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(27) :

error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(27) :

error C2501: 'm_pConnection' : missing storage-class or type specifiers
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(28) :

error C2146: syntax error : missing ';' before identifier 'm_pRecordset'
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(28) :

error C2501: '_RecordsetPtr' : missing storage-class or type specifiers
c:\documents and settings\007\my documents\货物管理系统\货物管理系统.h(28) :

error C2501: 'm_pRecordset' : missing storage-class or type specifiers
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(178) :

error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(181) :

error C2601: 'OnSave' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(211) :

error C2601: 'JudgeInputReasonable' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(276) :

error C2601: 'SaveBill' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(327) :

error C2601: 'SaveGoods' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(375) :

error C2601: 'ShowBill' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(488) :

error C2601: 'GetTimeFromStr' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(506) :

error C2601: 'OnExit' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(509) :

fatal error C1004: unexpected end of file found
Generating Code...
Error executing cl.exe.

货物管理系统.exe - 45 error(s), 0 warning(s)















...全文
81 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
701129 2004-08-09
  • 打赏
  • 举报
回复
up
701129 2004-08-09
  • 打赏
  • 举报
回复
请高手帮忙看看呀!!!!
701129 2004-08-09
  • 打赏
  • 举报
回复
上面的提示错误写得有误,提示错误如下

--Configuration: 货物管理系统 - Win32 Debug--------------------
Compiling...
BillDlg.cpp
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(178) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(181) : error C2601: 'OnSave' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(211) : error C2601: 'JudgeInputReasonable' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(276) : error C2601: 'SaveBill' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(327) : error C2601: 'SaveGoods' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(375) : error C2601: 'ShowBill' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(488) : error C2601: 'GetTimeFromStr' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(506) : error C2601: 'OnExit' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\BillDlg.cpp(509) : fatal error C1004: unexpected end of file found
货物管理系统Dlg.cpp
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp(308) : error C2601: 'OnBuyAdd' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp(316) : error C2601: 'OnSaleAdd' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp(325) : error C2601: 'OnBillShow' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp(358) : error C2601: 'OnExitWindow' : local function definitions are illegal
C:\Documents and Settings\007\My Documents\货物管理系统\货物管理系统Dlg.cpp(361) : fatal error C1004: unexpected end of file found
Generating Code...
Error executing cl.exe.

货物管理系统.exe - 14 error(s), 0 warning(s)

16,472

社区成员

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

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

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