gpurusho
May 7th, 1999, 05:29 AM
my app reads a text file and writes to a database. How do I use Edit control to tell or display in my window about the status of my application (ie) reading the text file now, now writing into database
|
Click to See Complete Forum and Search --> : Edit control gpurusho May 7th, 1999, 05:29 AM my app reads a text file and writes to a database. How do I use Edit control to tell or display in my window about the status of my application (ie) reading the text file now, now writing into database Wayne Forget May 7th, 1999, 06:46 AM Attach a var to you CEdit control. Then add the text to the var eg. m_edit = "Writing Data"; UpdateData( FALSE ); sanjay_delhi_ibm May 7th, 1999, 06:51 AM Simple, Define a variable of CString type , which maps to the Edit control, thru the class wizard. The when you are calling the read from text file function, assign some text to the CString Variable and call UpdateData(FALSE) , this will show the text on the edit box. do this for the save database function also. The code for this could be : CString strShowText; // declared in the header file then when the function is called: strShowText = "Blah, Blah, ....."; UpdateData(FALSE); codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |