Why is the wrong number of characters in "Edit2"?
if(!error) { char s_russian[] = { "àáâãä叿çèéêëìíîïðñòóôõöøùúûüýþÿ" }; char s_latin[] = { "abcdefghijklmnopqrstuvwxyz" }; char S_RUSSIAN[] = { "ÀÁÂÃÄŨÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞß" }; char S_LATIN[] = { "ABCDEFGHIJKLMNOPQRSTUVWXYZ" }; char s_num[] = { "0123456789" }; char s_esc[] = { "`~@#¹$;%^:&?*()-_=+|[{]}<>" }; char password_chars[] = ""; if(CheckBox1->Checked == true && CheckBox3->Checked == true) { strcat(password_chars, s_russian); } if(CheckBox2->Checked == true && CheckBox3->Checked == true) { strcat(password_chars, s_latin); } if(CheckBox1->Checked == true && CheckBox4->Checked == true) { strcat(password_chars, S_RUSSIAN); } if(CheckBox2->Checked == true && CheckBox4->Checked == true) { strcat(password_chars, S_LATIN); } if(CheckBox5->Checked == true) { strcat(password_chars, s_num); } if(CheckBox6->Checked == true) { strcat(password_chars, s_esc); } int password_chars_length = strlen(password_chars); Edit2->Text = password_chars_length; } 
