المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : sotring/comparing strings



C++ Programming
03-30-2009, 03:30 PM
Hi to all.
I'm trying to sort strings which contains some eastern European specific letters.
I'm sorting with qsort function:
qsort( (void *)polje, (size_t)cnt, sizeof( char * ), compare );
where 'compare' is a helper function int compare( const void *arg1, const void *arg2 ) which uses '_stricoll' function.
Wen running my test app sorting doesn't work.
I then tried to set local settings like this on OnInitDialog():

char* locale;
locale = setlocale(LC_ALL,"Croatian");

locale returns "Croatian_Croatia.1250"; but sorting still isn't working, why?
Thanks in advance