dlgdirlist can't get it to work
I've followed every example and I can't populate a list box with a directory listing. I've tried it in list boxes on dialog boxes and everything, I just get ntdll errors.
here's what I try to do with a CFormView:
DlgDirList( "C:\\*.*", IDC_LIST1, 0, DDL_EXCLUSIVE | DDL_DIRECTORY);
here's where it stops:
_AFXWIN_INLINE int CWnd::DlgDirList(LPTSTR lpPathSpec, int nIDListBox,
int nIDStaticPath, UINT nFileType)
{ ASSERT(::IsWindow(m_hWnd)); return ::DlgDirList(m_hWnd, lpPathSpec, nIDListBox,
nIDStaticPath, nFileType); }
I have a list box control on a form view, I just want to be able to list directories, it's for an ftp program, any help would be greatly appreciated, thx