unicode filename in NTCreateAndX

Dave Daugherty dave.daugherty at centrify.com
Wed Nov 29 18:37:13 GMT 2006



Volker Lendecke Sent: Tuesday, November 28, 2006 10:22 PM
To: Alison Winters

> 4. Is there a non-sucking way to cast a byte array input stream to a
>    proper unicode string in STL?

If you are comfortable defining templates, one approach is to define a
Unicode string template based on std::basic_string

typedef std::basic_string<uint16> u2String; ...

Just look at how std::string is defined and make the necessary
adjustments.

Watch out for older definitions of std::basic_string such as you would
find in Red Hat Linux 7.2.

Dave Daugherty



More information about the samba-technical mailing list