Changeset 142 for Include/com


Ignore:
Timestamp:
Mar 9, 2007, 10:15:34 PM (18 years ago)
Author:
イグトランス (egtra)
Message:

Environment, OperatingSystem, Versionの追加、Unicode対応修正ほか

Location:
Include/com
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • Include/com/bstring.ab

    r138 r142  
    1111
    1212    Sub BString(len As DWord)
    13         bs = SysAllocStringLen(len)
     13        bs = SysAllocStringLen(0, len)
    1414    End Sub
    1515
     
    4040    End Sub
    4141
     42    Sub ~BString()
     43        Clear()
     44    End Sub
     45
    4246    Sub Operator =(ByRef bstr As BString)
    43         ~BString()
     47        Clear()
    4448        BString(bstr)
    4549    End Sub
    4650
    47     Sub ~BString()
     51    Sub Operator =(s As LPCOLESTR)
    4852        Clear()
     53        BString(s)
     54    End Sub
     55
     56    Sub Assign(ByRef bstr As BString)
     57        Clear()
     58        BString(bstr)
     59    End Sub
     60
     61    Sub Assign(s As LPCOLESTR)
     62        Clear()
     63        BString(s)
     64    End Sub
     65
     66    Sub AssignFromBStr(bstr As BSTR)
     67        Clear()
     68        BString(bstr)
    4969    End Sub
    5070
     
    7494    End Function
    7595
    76     Const Function Operator [](i As SIZE_T)
     96    Const Function Operator [](i As SIZE_T) As OLECHAR
    7797#ifdef _DEBUG
    7898        If i > Length Then
Note: See TracChangeset for help on using the changeset viewer.