I'm using VC++ 10.0 Express to create an app that will find all visible drives (C:, USB drives, Memory Sticks, Lettered network drives, etc.) and populate a checked list box with those available drive letters. The app currently is loading the prefab list of A: through Z:, with the eventual option of disabling the unavailable drive letters in the checkedListBox. This current option , however, is an imperfect jerry-rig.
How do I load the checkedListBox dynamically using a separate function to find the available drives? Thanks in advance.
this->checkedListBox1->AccessibleName = L"checkedBoxDrive";
this->checkedListBox1->FormattingEnabled = true;
this->checkedListBox1->Items->AddRange
(gcnew cli::array< System::Object^ >(26) {L"A:", L"B:", L"C:", L"D:", L"E:", L"F:",
L"G:", L"H:", L"I:", L"J:", L"K:", L"L:", L"M:", L"N:", L"O:", L"P:", L"Q:", L"R:",
L"S:", L"T:", L"U:", L"V:", L"W:", L"X:", L"Y:", L"Z:"});