Well my first problem is over but now I have another one:
Code:
sprintf(text1,"x is : % d", x);
sprintf(text2,"Y is : % d", y);
strcat(main, text1);
strcat(main, "\n\n");
strcat(main, text2);
MessageBox(NULL, main , "msg",MB_OK);
When i do this and test it the msg box shows this
D[]ox is : 4
y is: 5
why does is show the 3 charachters at the beginning ?
When i do this it works perfectly but only shows one string :
Code:
sprintf(text1,"x is : % d", x);
sprintf(text2,"Y is : % d", y);
strcat(main, text1);
strcat(main, "\n\n");
strcat(main, text2);
MessageBox(NULL, text1 , "msg",MB_OK);