// stdafx.h : 标准系统包含文件的包含文件, // 或是经常使用但不常更改的 // 特定于项目的包含文件 #pragma once #ifndef VC_EXTRALEAN #define VC_EXTRALEAN // 从 Windows 头中排除极少使用的资料 #endif #include "targetver.h" #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的 #include // MFC 核心组件和标准组件 #include // MFC 扩展 #ifndef _AFX_NO_OLE_SUPPORT #include // MFC OLE 类 #include // MFC OLE 对话框类 #include // MFC 自动化类 #endif // _AFX_NO_OLE_SUPPORT #ifndef _AFX_NO_DB_SUPPORT #include // MFC ODBC 数据库类 #endif // _AFX_NO_DB_SUPPORT #ifndef _AFX_NO_DAO_SUPPORT #include // MFC DAO 数据库类 #endif // _AFX_NO_DAO_SUPPORT #ifndef _AFX_NO_OLE_SUPPORT #include // MFC 对 Internet Explorer 4 公共控件的支持 #endif #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC 对 Windows 公共控件的支持 #endif // _AFX_NO_AFXCMN_SUPPORT #include "../jsonLib/json/json.h" #include "../sqlite/CppSQLite3.h" //#include //#include //#include //#include //#include #include //using namespace log4cplus; //************************************ // Method: GetCurrentModuleDir // FullName: GetCurrentModuleDir // Access: public // Returns: void // Qualifier: 获取当前模块的文件的目录 // Parameter: char * db_file_name //************************************ void GetCurrentModuleDir( CString& modulDir ); //************************************ // Method: GetTimeString // FullName: GetTimeString // Access: public // Returns: CString // Qualifier: 获取当时时间的字符串 //************************************ CString GetTimeString(); //注意:当字符串为空时,也会返回一个空字符串 void split(const std::string& s, const std::string& delim,std::vector< std::string >* ret); void updatefile(CppSQLite3DB* bantch_db,long student_paper_id,const std::string & norimg_dir,const std::string & excimg_dir); void setRunFlag(CString str); void setRunUploadFlag(CString str); CString getRunFlag(); #include "NetOperator.h" #define MAX_STRUENTS_NUM 11