Hi, On 2010 Feb 13, at 22:18, Przemysław Czerpak wrote:
> On Sat, 13 Feb 2010, Szak�ts Viktor wrote: > > Hi, > >> Above macro should rather be named WINTEXT() or U16TEXT(). > > This macro is used for native OS texts. In WINCE it's U16. > In desktop windows it's 8bit ASCII text. It doesn't matter > if UNICODE macro is set or not so U16TEXT() is highly confusing > name. > WINTEXT(), OSTEXT() or RAWTEXT() is better choice though they d > not use use HB prefix and I though we are forcing using it in > out own macros. > We will also need type with similar name and we should remember > about it choosing the name, i.e.: > HB_WINTEXT() and HB_WINCHAR Yes, I realized the missing HB_ prefix after pressing the Send button. I don't know about other OSes, but on Windows there is no distinction between char and string when using TEXT() macro (it works for both), so IMO it's not absolutely necessary to match it with type name, since it will be confusing in places anyway. I like HB_OSTEXT() the best. It's generally a good thing not to use 'WIN' in any central Harbour names. This can be extended to HB_OSTEXT_WIN() if we want to create a sub-type which is easier to grep for, but I can't at the moment imaging a situation where this is extremely useful.. so maybe plain HB_OSTEXT() will be enough. Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour