使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 4905e2e7537d507f218e8e9595485e09d9f3a2b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
 
// CMBAMDBFun command target
 
class AFX_EXT_CLASS CMBAMDBFun : public CObject
{
public:
    CMBAMDBFun();
    virtual ~CMBAMDBFun();
    
public:
    static CString GetDefaultIniFile();
    static void        WriteDBErrToFile( CString strErrInfo );
    static void        WriteRowToFile(CString strFileName, CString strContent );
    static CString    GetDBReplaceStr( CString strData );
    static CString FormatDBTIMEToStr( COleDateTime dtData );
    static int GetStringLen(CString strText);
    static CString     GetSubjectFromFormatText( CString strFormatText);
    static CString GetRelSubject( CString strSubject, long nMaxLen );
    static int        FindStringInArray( CString strData, CStringArray &asData, bool bCheckCompare = true );
    static bool        GetParam( CString strStuff, CStringArray &asVarName , CStringArray &asValue , CString strApart);
    static BOOL        GetParam( CString strStuff, CString strParamName , CString &strParam , CString strApart);
 
    static int        GetElementCount(CString strStuff,CString strApart  );
    static BOOL        GetElementItem(CString &strStuff, CString &strItem,CString strApart);
    static void        DelElementItem(CString &strStuff, CString strItem,CString strApart);
    static void        AddElementItem(CString &strStuff, CString strItem,CString strApart);
    static BOOL        ExistElementItem(CString strStuff, CString strItem,CString strApart);
 
    static void        AddElementItem(CString &strStuff, CString strItem1, CString strItme2, CString strApart);
    static BOOL        GetElementItem(CString &strStuff, CString &strItem1, CString &strItem2,CString strApart);
    static BOOL        ExistElementItem(CString strStuff, CString strItem1, CString strItem2,CString strApart);
    static BOOL        GetElementItemByIndex(CString strStuff, int nIndex, CString &strItem , CString strApart );
 
    static CString    GetWorkDir();
    static CString    GetModulePath();
    static CString    GetPathName( CString strFileName );
    static CString    GetFileName( CString strFilePathName );    
    static BOOL        ExistPath( CString strPathName );
    static BOOL        ExistFile( CString strFileName );
 
 
};