Or if you're using C++ (which I assume since you cross-posted there),

SetDlgItemText(hWnd, ID_EDIT, boost::lexical_cast<std::string>(your_int).c_str());