- Timestamp:
- Jul 12, 1999, 2:17:20 AM (26 years ago)
- Location:
- trunk/src/ole32
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ole32/oString.h
r198 r290 3 3 #define OSTRING_INCLUDED 4 4 5 class oString A5 class oStringBase 6 6 { 7 pr ivate:8 LPSTR m_strBuf; // Buffer for string data.9 7 protected: 8 char * m_strBuf; // Buffer. 9 10 10 long m_bufLen; // Current allocated length 11 // of buffer 11 // of buffer (bytes) 12 12 13 long m_bytePerChar; // Number of bytes per character. 13 14 long m_strLen; // Length of string 14 15 // incl. zero terminator … … 18 19 static long blockSize; 19 20 20 protected: 21 oStringBase(long bytePerChar); 22 virtual ~oStringBase(); 23 21 24 void freeBuf(); 22 25 void getBuf(long newLen); 23 26 void adjBuf(long newLen); 24 27 long calcBufLen(long newLen); 28 }; 25 29 30 class oStringA : public oStringBase 31 { 26 32 public: 27 33 oStringA(void); … … 29 35 oStringA(LPCWSTR pUnicode); 30 36 oStringA(LPCSTR pAscii); 37 oStringA(REFCLSID pclsId); 31 38 oStringA(const oStringA &ref); 32 virtual ~oStringA();33 39 34 40 operator LPSTR(); 35 41 36 // Equality42 // Assignment 37 43 oStringA operator = (const oStringA & string); 38 44 oStringA operator = (LPCSTR pAscii); 39 45 oStringA operator = (LPCWSTR pUnicode); 46 oStringA operator = (REFCLSID pClsId); 40 47 41 48 // Concatenation … … 44 51 oStringA operator + (LPCWSTR pUnicode); 45 52 46 // Concatenation 53 // Concatenation & Assignment. 47 54 oStringA operator += (const oStringA & string); 48 55 oStringA operator += (LPCSTR pAscii); … … 51 58 }; 52 59 60 class oStringW : public oStringBase 61 { 62 public: 63 oStringW(void); 64 oStringW(int defLen); 65 oStringW(LPCWSTR pUnicode); 66 oStringW(const wchar_t * pUnicode); 67 oStringW(LPCSTR pAscii); 68 oStringW(REFCLSID pclsId); 69 oStringW(const oStringW &ref); 70 71 operator LPWSTR(); 72 73 // Assignment 74 oStringW operator = (const oStringW & string); 75 oStringW operator = (LPCSTR pAscii); 76 oStringW operator = (LPCWSTR pUnicode); 77 oStringW operator = (const wchar_t * pUnicode); 78 oStringW operator = (REFCLSID pClsId); 79 80 // Concatenation 81 oStringW operator + (const oStringW & string); 82 oStringW operator + (LPCSTR pAscii); 83 oStringW operator + (LPCWSTR pUnicode); 84 oStringW operator + (const wchar_t * pUnicode); 85 86 // Concatenation & Assignment. 87 oStringW operator += (const oStringW & string); 88 oStringW operator += (LPCSTR pAscii); 89 oStringW operator += (LPCWSTR pUnicode); 90 oStringW operator += (const wchar_t * pUnicode); 91 92 }; 93 53 94 #endif // OSTRING_INCLUDED -
trunk/src/ole32/ole32.h
r202 r290 15 15 16 16 // ><DJR 17.05.99 Force to use C-interfaces for now to prevent CALLBACK definition compiler error 17 #define CINTERFACE 17 #define CINTERFACE 1 18 18 19 19 // ><DJR 17.05.99 Move standard includes to before os2win.h [memcmp] … … 23 23 #include <string.h> 24 24 #include <memory.h> 25 #include <wchar.h> 25 26 26 27 // ><DJR 17.05.99 Prevent CALLCONV becoming _System 28 #include <win/wtypes.h> 27 29 #include <winbase.h> 28 30 #include <uconv.h>
Note:
See TracChangeset
for help on using the changeset viewer.