Hi, I am converting an application to Unicode.

It compiles successfully in UNICODE.
but when I run, the output was something strange.

In fact I am taking Input in a BSTR variable, and want to convert this in to
tstring.
tstring in my application I have defined as

typedef basic_string<TCHAR> tstring;

to convert BSTR in to tstring I used,

BSTR bstrRtf;
here bstrRtf , will contain the value, which the client will send.

tstring strTest1 = W2T(bstrRtf);

can u suggest, where I am wrong, and How can I rectify this..

Regs