I am trying to write some code using vc++ 6.0 under win 98 but have gotten stuck in one place. I am trying to read the strings of the combobox into the edit box when i click on the command button and the variables that i have declared are as follows:

combobox = m_combo1
editbox = m_edit1

The code in my onbutton function is as follows:

UpdateData(true);
CString a;
a = m_combo1;
a.MakeUpper( );
m_edit1 = a;

The problem is that i am not able to read in any values into the edit box
and whenever i click the button the editbox just remains empty.

Can someone please see what's wrong with my program and show me or
e-mail the entire codings of the right way to do this. My e-mail is
freesoft_2000@yahoo.com

Thank You

Yours Sincerely

Richard West