hi there, again the method by sriks is very much fine... but i think that you want to dusplay the int variable 'in the dialog itself, as text'... that means you want a "Static Text" (also called Labels) in the dialog box... to do this you add a CStatic control to the dialog box, and also add a CStatic member variable(by control) to the dialog class . And then when you want to display text, you can call m_cstatic.SetWindowText()...(m_cstatic is a control variable). and in case you have added the variable cstatic to be associated with the control's Value, then you have to call UpdateData(TRUE), after setting the valuue of the variable...
alternately, you can hide the text by displaying a blank string or by using the ShowWindow(SW_HIDE) if it is a control variable...
hope this helped...
sgopinath.