I don't get it... something must be missing :S
I have to char arrays:
Code:
char names[10][50] = { "Julieta", "Martin", "Samanta", "Ruben", "Franco", "Sandra", "Marta", "Ofélia", "Carlos", "Fabiana" };
static char rank[10][3] = {"1º","2º","3º","4º","5º","6º","7º","8º","9º","10º"};
And I have 2 Listboxes in the DialogBox. I'm writing one of the arrays in each box with the following:
Code:
case WM_INITDIALOG:
for( i=0 ; i<10 ; i++){
SendDlgItemMessage(hWnd, IDC_LIST1,LB_ADDSTRING,NULL,names[i]);
SendDlgItemMessage(hWnd, IDC_LIST1,LB_ADDSTRING,NULL,rank[i]);
}
break;
The first array it gets it right, but the second one it writes:
___________
10º
1º
2º
3º
4º
5º
6º
7º
8º
9º
____________
Starts on the last position, and only then starts normally.... what the hell?