G
Guest
Im using VS Studio. Net 2005 to find out the transformed length of wide char
string based on specific locale (collation).
char* p = setlocale(LC_COLLATE,NULL);//US Locale on my machine.
wchar_t tp[6] = L"Hello";
size_t size = wcsxfrm(NULL, tp, 0);
cout<<"Size "<<size<<endl;
But it seems that I can't pass NULL as destination string since it gives me
runtime error in wcsfrm.c file. But same code works on 2003 studio.
Can anyone suggest me what is wrong with my code.
string based on specific locale (collation).
char* p = setlocale(LC_COLLATE,NULL);//US Locale on my machine.
wchar_t tp[6] = L"Hello";
size_t size = wcsxfrm(NULL, tp, 0);
cout<<"Size "<<size<<endl;
But it seems that I can't pass NULL as destination string since it gives me
runtime error in wcsfrm.c file. But same code works on 2003 studio.
Can anyone suggest me what is wrong with my code.