Subscribe to forum
Forum
No LogStringList for TWideStrings?
Page: 1
| Author | Post |
|---|---|
|
#1 Tue Apr 01, 2008 11:11 pm
|
|
|
Member
Registered: Apr 2008
Posts: 7
|
I just upgraded to v2 primarily for Unicode support and was surprised to see there is no LogStringList for TWideStrings. It's not clear to me how I would even make my own method. If I just copy the code from the existing LogStringList, the call to SendContext is not possible since that is a private method.
|
|
#2 Wed Apr 02, 2008 7:14 am
|
|
|
Administrator
Registered: Sep 2007
Posts: 133
|
Hello Steve,
Thanks for upgrading and your posting. You are right, an overloaded LogStringList method for TWideStrings is missing, primarily because of old Delphi versions which do not have support for this type. I added it to our feature request list. In the meantime, you could add your own method to the TSiSession class. Beginning with Delphi 2006 (I think), Delphi supports the feature of class helper which lets you easily extend existing classes. Please see below for a detailed example on how to add a new LogWideStrings method which logs a TWideStrings object. program Project1; « Last edit by Tobias Gurock on Wed Apr 02, 2008 7:17 am. » |
|
#3 Fri Apr 04, 2008 4:47 am
|
|
|
Member
Registered: Apr 2008
Posts: 7
|
Thanks very much
|
|
#4 Fri Apr 04, 2008 9:13 am
|
|
|
Administrator
Registered: Sep 2007
Posts: 133
|
You are welcome.
|
Page: 1