- Timestamp:
- Nov 9, 2008, 1:01:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/system/string.sbp
r652 r654 27 27 Namespace Detail 28 28 Function GetWCStr(mbsSrc As PSTR, len As SIZE_T, ByRef wcsDst As PWSTR) As SIZE_T 29 Dim lenWCS = MultiByteToWideChar(CP_ THREAD_ACP, 0, mbsSrc, (len As DWord) As Long, 0, 0)29 Dim lenWCS = MultiByteToWideChar(CP_ACP, 0, mbsSrc, (len As DWord) As Long, 0, 0) 30 30 wcsDst = _System_AllocForConvertedString(SizeOf (WCHAR) * lenWCS) As PWSTR 31 GetWCStr = MultiByteToWideChar(CP_ THREAD_ACP, 0, mbsSrc, (len As DWord) As Long, wcsDst, lenWCS)31 GetWCStr = MultiByteToWideChar(CP_ACP, 0, mbsSrc, (len As DWord) As Long, wcsDst, lenWCS) 32 32 End Function 33 33 … … 38 38 39 39 Function GetMBStr(wcsSrc As PWSTR, len As SIZE_T, ByRef mbsDst As PSTR) As SIZE_T 40 Dim lenMBS = WideCharToMultiByte(CP_ THREAD_ACP, 0, wcsSrc, (len As DWord) As Long, 0, 0, 0, 0)40 Dim lenMBS = WideCharToMultiByte(CP_ACP, 0, wcsSrc, (len As DWord) As Long, 0, 0, 0, 0) 41 41 mbsDst = _System_AllocForConvertedString(SizeOf (CHAR) * lenMBS) As PSTR 42 GetMBStr = WideCharToMultiByte(CP_ THREAD_ACP, 0, wcsSrc, (wcsSrc As DWord) As Long, mbsDst, lenMBS, 0, 0) As SIZE_T42 GetMBStr = WideCharToMultiByte(CP_ACP, 0, wcsSrc, (wcsSrc As DWord) As Long, mbsDst, lenMBS, 0, 0) As SIZE_T 43 43 End Function 44 44
Note:
See TracChangeset
for help on using the changeset viewer.