Truckle, Andrew J wrote:
> Can you please clarify this L stuff again for me....?
The L prefix makes the string wide character, and since BSTRs are wide
character internally, the L prefix saves a conversion from single byte
character to wide character string. In other words, if you want to
compare a single byte character ("SoundRota") with a wide character
string (the BSTR) then one of them must be converted to the other type.
However if both strings are wide character (L"SoundRota" and the BSTR)
then no such conversion is necessary.
Check out my Unicode article at
<http://www.beginthread.com/Article/Ehsan/Unicode/>.
--
Ehsan Akhgari
Farda Technology <http://www.farda-tech.com/>
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying to
produce bigger and better idiots. So far, the Universe is winning" -
Rich Cook
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.