使用soui开发的mbc,只支持windows版本
w1146869587
2022-01-24 479b1995ef435713c2cf4f0da8de3a6af6c30922
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#if !defined( _OIFILECAPIDLL_ )
#define _OIFILECAPIDLL_
 
//#pragma comment( lib, "OIFileCAPI.lib" ) 
//#pragma message( "Automatically linking with OIFileCAPI.dll" )
 
#if _MSC_VER < 1400
        #define    _FILECAPILIBNAME    "OIFileCAPI.lib"
        #define    _FILECAPIDLLNAME    _T( "OIFileCAPI.dll" )
#else
#ifndef _UNICODE
    #if defined(_DEBUG)
        #define    _FILECAPILIBNAME    "OIFileCAPID.lib"
        #define    _FILECAPIDLLNAME    _T( "OIFileCAPID.dll" )
    #else
        #define    _FILECAPILIBNAME    "OIFileCAPI.lib"
        #define    _FILECAPIDLLNAME    _T( "OIFileCAPI.dll" )
    #endif
#else
    #if defined(_DEBUG)
        #define    _FILECAPILIBNAME    "OIFileCAPIUD.lib"
        #define    _FILECAPIDLLNAME    _T( "OIFileCAPIUD.dll" )
    #else
        #define    _FILECAPILIBNAME    "OIFileCAPIU.lib"
        #define    _FILECAPIDLLNAME    _T( "OIFileCAPIU.dll" )
    #endif
#endif
#endif
 
#pragma comment( lib, _FILECAPILIBNAME ) 
#pragma message( "Automatically linking with " _FILECAPILIBNAME )
 
#define    OPTION_TRANOPTION_SHOWDLG        ( 0X0001 )    // ÏÔʾ½ø¶È¶Ô»°¿ò
#define    OPTION_TRANOPTION_REPORT        ( 0X0002 )    // ±¨¸æ½ø¶ÈÐÅÏ¢
//#define    OPTION_HAVESOURCE                ( 0X0004 )    // ÊÇת·¢µÄ¸½¼þ
#define    OPTION_NOT_GEN_DATEPATH            ( 0X0008 )    // ²»×Ô¶¯Éú³ÉÈÕÆÚ·¾¶
#define    OPTION_NOT_USE_GUIDFILE            ( 0X0010 )    // ²»Ê¹ÓàGUID ×÷ΪÎļþÃû
#define    OPTION_GEN_FILE_EXT                ( 0X0020 )    // Éú³ÉÎļþʱ£¬¼ÓÉÏÀ©Õ¹Ãû
 
//==================================================================================
// ¹¦ÄÜ£º
//        É¾³ýÎļþ
// ²ÎÊý£º
//        1) CString strFileSIP                // IP
//        2) int nFileSPort                    // ¶Ë¿Ú
//        3) CString strOperator                // ²Ù×÷¶ÔÏó
//        4) CString strOperatorName            // ²Ù×÷¶ÔÏóÃû³Æ
//        5) CString strAppType                // Ó¦ÓÃÀàÐÍ
//        6) CString strFileID                // Óûɾ³ýµÄÎļþ ID
//        8) bool bInitSocket = true            // ³õʼ»¯Socket
// ·µ»Ø£º
//        ³É¹¦·µ»Ø0 
//==================================================================================
extern LONG    FILEAPI_DeleteFile( CString strFileSIP, int nFileSPort, CString strOperator, CString strOperatorName, CString strAppType, CString strFileID, bool bInitSocket = true );
 
//==================================================================================
// ¹¦ÄÜ£º
//        ÉÏ´«Îļþ
// ²ÎÊý£º
//        1)  CString    strFileSIP                // IP
//        2)  int        nFileSPort                // ¶Ë¿Ú
//        3)  CString    strOperator                // ²Ù×÷¶ÔÏó
//        4)  CString    strOperatorName            // ²Ù×÷¶ÔÏóÃû³Æ
//        5)  CString    strAppType                // Ó¦ÓÃÀàÐÍ
//        6)  CString    strFileName                // ÉÏ´«µÄÎļþȫ·¾¶
//        7)  CString    strFileID                // ·µ»ØµÄÎļþ ID
//        8)  CString    strPathName                // ±£´æÖ¸¶¨Ä¿Â¼£¬Ïà¶ÔÓÚ¸ùµÄĿ¼£¬Èç: /Folder
//        9)  DWORD    dwOption                // ÉÏ´«µÄÑ¡Ïî
//        10) bool    bInitSocket = true        // ³õʼ»¯Socket
// ·µ»Ø£º
//        ³É¹¦·µ»Ø0 
//==================================================================================
extern LONG FILEAPI_UploadFile( CString strFileSIP, int nFileSPort, CString strOperator, CString strOperatorName, CString strAppType,
                                CString strFileName, CString &strFileID, CString strPathName = _T( "" ), DWORD dwOption = 0, bool bInitSocket = true );
 
//==================================================================================
// ¹¦ÄÜ£º
//        ÏÂÔØÎļþ
// ²ÎÊý£º
//        1)  CString    strFileSIP                // IP
//        2)  int        nFileSPort                    // ¶Ë¿Ú
//        3)  CString    strOperator                // ²Ù×÷¶ÔÏó
//        4)  CString    strOperatorName            // ²Ù×÷¶ÔÏóÃû³Æ
//        5)  CString    strAppType                // Ó¦ÓÃÀàÐÍ
//        6)  CString    strFileID                // ÏÂÔØµÄÎļþ ID
//        7)  CString    strSavePath                // ÏÂÔØºó±£´æµÄÖ¸¶¨Ä¿Â¼£¬ÓÃÓÚ±£´æÖÁ Ä¿Â¼
//        8)  CString    strFileName                // ±£´æµÄÎļþȫ·¾¶£¬ÓÃÓÚ±£´æÖÁ Îļþ
//        9)  DWORD    dwOption                // ÉÏ´«µÄÑ¡Ïî
//        10) bool    bInitSocket = true        // ³õʼ»¯Socket
// ·µ»Ø£º
//        ³É¹¦·µ»Ø0 
 
//==================================================================================
extern LONG FILEAPI_DownloadFile( CString strFileSIP, int nFileSPort, CString strOperator, CString strOperatorName, CString strAppType,
                                    CString strFileID, CString strSavePath, CString &strFileName, DWORD dwOption = 0, bool bInitSocket = true );
 
//==================================================================================
// ¹¦ÄÜ£º
//        µÃµ½ÎļþÐÅÏ¢
// ²ÎÊý£º
//        1)  CString    strFileSIP                // IP
//        2)  int        nFileSPort                    // ¶Ë¿Ú
//        3)  CString    strOperator                // ²Ù×÷¶ÔÏó
//        4)  CString    strOperatorName            // ²Ù×÷¶ÔÏóÃû³Æ
//        5)  CString    strAppType                // Ó¦ÓÃÀàÐÍ
//        6)  CString    strFileID                // ÏÂÔØµÄÎļþ ID
//        7)  CString    strFileName                // ÎļþÔ­ÎļþÃû
//        8)  CString    strSaveFileName            // ±£´æµÄÎļþ·¾¶£¬Ïà¶ÔÓÚ´æ´¢¸ùµÄ·¾¶
//        9)  DWORD    dwFileSize                // Îļþ´óС
//        10) bool    bInitSocket = true        // ³õʼ»¯Socket
// ·µ»Ø£º
//        ³É¹¦·µ»Ø0 
//==================================================================================
extern LONG FILEAPI_GetFileInfo( CString strFileSIP, int nFileSPort, CString strOperator, CString strOperatorName, CString strAppType,
                                CString strFileID, CString &strFileName, CString &strSaveFileName, __int64 &nFileSize,
                                bool bInitSocket = true );
 
 
#endif // _OIFILECAPIDLL_