This is what we have to do.. be able to allow the consumer or the user rather to be able to use the software we programmed using microsoft visual studio 2005 version8.
In this assignment we had to write a source code to have the list of countries, then have the user to select a country and the selected country will appear in the box on the right. Seems easy?
Well it is challenging and it is just an assignment, our real major project still cannot be carried out as our product has'nt reached singapore so there is nothing me and ernie can do.. Ernie if your reading this.. i know.. sian...... kakaka.. Cos ernie's comp has been having probs and the teachers dont seem to have the time to help us.. This is what they show us yet they expect so much from us... This below is one of my real report that i have submitted:
Week No:2
Date: 28.4.08
Achievements of Assignment1
- My List Box is able to contain a list of countries
- I can select a country but I couldn’t transfer it to the edit box. So I’ve programmed it so that it appears on a window to prove to you that it works.
Therefore the transfer button works partially.

- The exit button works perfectly.
void CAListOfCountriesDlg::OnBnClickedExitButton()
{
// TODO: Add your control notification handler code here
// Close the box (i.e. terminate the application)
OnOK();
}
Current Problem(Early half of the day)
I am still not able to transfer the selected country to the edit box.
Sucessful
Tried out the solution you gave and thus it works.
void CAListOfCountriesDlg::OnBnClickedAddButton()
{
// TODO: Add your control notification handler code here
m_ListBox.GetText(m_ListBox.GetCurSel(),m_EditBox);
UpdateData(FALSE);
}

A screen capture of my finish product.
Lesson Learnt
I noticed that this is important for the selected country to appear in the edit box. I have tried deleting this phrase and it does not work.
- m_ListBox.GetText(m_ListBox.GetCurSel(),m_EditBox)
As for this portion, it means that the chosen country is already selected and when the transfer button is pressed, the m_EditBox is the location that the selected country should appear. And the configuration of the Add variable is as shown in the picture below.

The m_ListBox is where the selection if country should appear. And the configuration of the Add variable is as shown in the picture below.

@>-- black rose