以下是引用ljfgbf在2008-1-21 17:11:45的发言: 再次提问 希望回答 Option Explicit Dim STlen As Long, STf As String, str As String, STj As String Private Declare Function LCMapString Lib "kernel32" Alias "LCMapStringA" (ByVal Locale As Long, ByVal dwMapFlags As Long, ByVal lpSrcStr As String, ByVal cchSrc As Long, ByVal lpDestStr As String, ByVal cchDest As Long) As Long Private Declare Function lstrlen Lib "kernel32" Alias "lstrlenA" (ByVal lpString As String) As Long Public Function JToF(ByVal str As String) As String Dim STlen As Long, STf As String STlen = lstrlen(str) STf = Space(STlen) LCMapString &H804, &H4000000, str, STlen, STf, STlen JToF = STf End Function Public Function FToJ(ByVal str As String) As String Dim STlen As Long, STj As String STlen = lstrlen(str) STj = Space(STlen) LCMapString &H804, &H2000000, str, STlen, STj, STlen FToJ = STj End Function
[此贴子已经被作者于2008-1-21 17:16:04编辑过] |