Ignore:
Timestamp:
Sep 18, 2007, 12:10:41 AM (17 years ago)
Author:
イグトランス (egtra)
Message:

SPrintF関連の追加。関数FloatToChars, FormatFloatE, FormatIntegerUと列挙体FormatFlags。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/com/bstring.ab

    r272 r335  
    11' com/bstring.ab
    22
    3 #require <ole2.ab>
    4 #require <oleauto.ab>
     3'#require <ole2.ab>
     4'#require <oleauto.ab>
    55
    66Namespace ActiveBasic
     
    1919
    2020    Sub BString(s As BString)
    21         Init(s.bs, s.Length)
     21        BString.Copy(This.bs, s.bs)
    2222    End Sub
    2323
     
    5050    Sub Assign(bstr As BString)
    5151        Clear()
    52         Init(bstr, bstr.Length)
     52        BString.Copy(This.bs, bstr.bs)
    5353    End Sub
    5454
    5555    Sub Assign(s As LPCOLESTR)
    5656        Clear()
    57         Init(s, lstrlenW(s))
     57        s = SysAllocString(s)
    5858    End Sub
    5959
    6060    Sub AssignFromBStr(bstr As BSTR)
    6161        Clear()
    62         String.Copy(bs, bstr)
     62        BString.Copy(bs, bstr)
    6363    End Sub
    6464
Note: See TracChangeset for help on using the changeset viewer.