DrawText
only knows how to display character strings. To display anything else, you need to convert to a character string first, then display that.
void show_int(int x, /* ... */) {
std::stringstream buffer;
buffer << x;
DrawText(hdcWindow, buffer.str().c_str(), -1, &rc, DT_SINGLELINE);
}