Click to See Complete Forum and Search --> : changing directories


TGrimace
February 23rd, 2000, 02:33 PM
Hi. I'm hoping someone will be able to help me with this. I'm having some real trouble changing directories when double-clicking on the folder or drive I want. I'm using:
char CurDir2[256];
DWORD dword;
GetCurrentDirectory(dword,CurDir2);

DlgDirList(CurDir2, IDC_MAP_LIST, 0, DDL_DRIVES | DDL_DIRECTORY);
to fill the listbox. But when I get down to the doubleclick area, I'm not sure what to use. I've been using:
CString CurrentSelect;
m_Maps.GetText(m_Maps.GetCurSel(), CurrentSelect);
to find what's selected, but then I'm not sure what to do with it. I've tried SetCurrentDirectory(CurrentSelect); but that doesn't help. I've tried strcpy and strcat, but no luck. Can anyone help me?