请教了:
请教了:
我加入代码后工程运行以后提示错误如下,请问我应该怎样改才能除去错误提示,使程序运行正常???请大侠一定帮忙看看,谢谢!!!
工程如下
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)