We have a map with files that we want to be shown in a combobox. The number of files in the map varies. When we chose a file from the combobox, that filename should be saved as a CString. We use this CString when we send the file on a comport.
Well if you are using the CListBox Object you can use the Dir method of it to populate the list. Then use the MyList.GetText (MyList.GetCurSel(), myString ) to return the selected filename in your CString object.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.