Hi,
I am concerting an aaplication to UNicode.It is using STL and CAN NOT USE MFC.

what I did is , i declare

_UNICODE,UNICODE in projects->Settings->C/C++ tab->preprocessor settings

I declare
typedef basic_string<TCHAR> tstring in the file

and replace all the occurance with tstring.

Now the problem is:

for the statement

string strTemp[3]={"A","B","C"};

I replaced it with

tstring strTemp[3]={"A","B","C"};

it is giving me error at the compilation time.
error C2440: 'initializing' : cannot convert from 'char [4]' to 'class std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >'

can u suggest some solution for this.

other than this,what function I can use in place of compare.
say for example, I am having 2 strings, and comparing like this
say
string str1;string str2;
str1.compare(str2).

when I replace this, with tstring like this

tstring str1;tstring str2;
str1.compare(str2).//now here it is giving error.

Pl. suggest some solution for these problems..

Once again I CAN NOT USE MFC.

Regs