Another option is to use sprintf() in <stdio.h>.

assuming:
double Answer;
char str[31];

sprintf(str,"The solution is %lf",Answer);
MessageBox(NULL, str, "Solution:", MB_OK);