使用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
// Guid.h: interface for the CGuid class.
//
//////////////////////////////////////////////////////////////////////
 
#if !defined(AFX_GUID_H__D9421237_E27A_4AF6_8193_D20E0780CF75__INCLUDED_)
#define AFX_GUID_H__D9421237_E27A_4AF6_8193_D20E0780CF75__INCLUDED_
 
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
 
class AFX_EXT_CLASS CGuid  
{
// Construction
public:
    enum GuidStatus
    {
        valid = 0,
        invalid = 1,
        null = 2,
    };
 
    CGuid();
    CGuid( const CGuid& ref );
    CGuid( const GUID &guid );
    CGuid( const CString strSrc );
    CGuid( LPCWSTR lpszSrc );
 
    const CGuid& operator=(const CGuid& guidSrc);
    const CGuid& operator=(const GUID& guidSrc);
    const CGuid& operator=(const CString strSrc);
    const CGuid& operator=(LPCWSTR lpszSrc);
 
    bool operator==(const CGuid& guid) const;
    bool operator==(const GUID& guid) const;
    bool operator!=(const CGuid& guid) const;
    bool operator!=(const GUID& guid) const;
 
    // ±È½Ï´óСÔËËã·û¿ÉÓÃÓÚmapÖеÄKEY
    bool operator<(const CGuid& guid) const;
    bool operator<(const GUID& guid) const;
    bool operator>(const CGuid& guid) const;
    bool operator>(const GUID& guid) const;
 
    operator CString() const;
    operator BSTR() const;
    operator GUID() const;
 
// Attributers
public:
    GUID        m_guid;
    GuidStatus    m_status;
 
// Operations
public:
    bool    NewID();
    CString GetString() const;
    bool    IsValid() const;
    CString    GetString1() const;                    // ×ª»¯Îª×Ö·û´® XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
    bool    FromString1( CString strSrc );        // ½« XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX ×ª»¯Îª GUID
};
 
#endif // !defined(AFX_GUID_H__D9421237_E27A_4AF6_8193_D20E0780CF75__INCLUDED_)