Changeset 335 for trunk/Include/com/bstring.ab
- Timestamp:
- Sep 18, 2007, 12:10:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/com/bstring.ab
r272 r335 1 1 ' com/bstring.ab 2 2 3 #require <ole2.ab>4 #require <oleauto.ab>3 '#require <ole2.ab> 4 '#require <oleauto.ab> 5 5 6 6 Namespace ActiveBasic … … 19 19 20 20 Sub BString(s As BString) 21 Init(s.bs, s.Length)21 BString.Copy(This.bs, s.bs) 22 22 End Sub 23 23 … … 50 50 Sub Assign(bstr As BString) 51 51 Clear() 52 Init(bstr, bstr.Length)52 BString.Copy(This.bs, bstr.bs) 53 53 End Sub 54 54 55 55 Sub Assign(s As LPCOLESTR) 56 56 Clear() 57 Init(s, lstrlenW(s))57 s = SysAllocString(s) 58 58 End Sub 59 59 60 60 Sub AssignFromBStr(bstr As BSTR) 61 61 Clear() 62 String.Copy(bs, bstr)62 BString.Copy(bs, bstr) 63 63 End Sub 64 64
Note:
See TracChangeset
for help on using the changeset viewer.