请教了:
我加入代码后工程运行以后提示错误如下,请问我应该怎样改才能除去错误提示,使程序运行正常???请大侠一定帮忙看看,谢谢!!!
工程如下
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)
相关推荐
Python中的X[:,0]、X[:,1]、X[:,:,0]、X[:,:,1]、X[:,m:n]和X[:,:,m:n]
Python中对于数组和列表进行切片操作是很频繁的,当然对于切片的操作可供我们直接使用的函数也是很遍历了,我们今天主要简单总结一下常用集中索引化方式,希望对大家有所帮助吧。 对于列表的切片比较简单,在我之前的博客里面有详细的讲解,需要的话可以去看看,这里就不再详细说了,今天主要是讲解对于Python中Array对象的操作,我们平时使用比较频繁的一般也就是三维的矩阵了,再高维度的处理方式是相同的,这里我们只讲解三维和二维的使用。 对于X[:,0]; 是取二维数组中第一维的所有数据 对于X[:,1] 是取二维数组中第二维的所有数据 对于X[:,m:n] 是取二维数组中第m维到第n-1维的所有数据
c++fstream 中 ios::in ios::out ios::ate ios::app ios::trunc ios::binary
C++ 通过以下几个类支持文件的输入输出: ofstream: 写操作(输出)的文件类 (由ostream引申而来) ifstream: 读操作(输入)的文件类(由istream引申而来) fstream: 可同时读写操作的文件类 (由iostream引申而来) 打开文件(Open a file) 对这些类的一个对象所做的第一个操作通常就是将它和一个真正的文件联系起来,也就是说打开...
C++11 并发指南之std::mutex详解
上一篇《C++11 并发指南二(std::thread 详解) 》中主要讲到了 std::thread 的一些用法,并给出了两个小例子,本文将介绍 std::mutex 的用法。 Mutex 又称互斥量,C++ 11中与 Mutex 相关的类(包括锁类型)和函数都声明在 头文件中,所以如果你需要使用 std::mutex,就必须包含 头文件。 头文件介绍 Mutex 系列类(四种) std::mutex,最基本的 Mutex 类。 std::recursive_mutex,递归 Mutex 类。 std::time_mutex,定时
C++11中std::future的具体使用方法
C++11中的std::future是一个模板类。std::future提供了一种用于访问异步操作结果的机制。std::future所引用的共享状态不能与任何其它异步返回的对象共享(与std::shared_future相反)( std::future references shared state that is not shared with any other asynchronous return objects (as opposed to std::shared_future))。一个future是一个对象,它可以从某个提供者的对象或函数中检索值,如果在不同的线程中,则它可以正确地
C++11中lambda、std::function和std:bind详解
大家都知道C++11中增加了许多的新特性,下面在这篇文中我们就来聊一下lambda表达式,闭包,std::function以及std::bind。文中介绍的很详细,相信对大家具有一定的参考价值,有需要的朋友们下面来一起看看吧。


