Hi All
I am trying to open a folder which my program
has generated and list the .txt files therin
But !
I cannot get past a Directory Pointer
Please Help If Poss Thanks
static LRESULT CALLBACK JobListDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case WM_INITDIALOG:
//wcscpy(filname,L"My Documents\\MyFolder\\");
DIR *pd;
pd= opendir(L"My Documents\\MyFolder\\");
return TRUE;
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDCANCEL:
// make sure sip is down
EndDialog(hDlg, CANCELLED);
return TRUE;
error #2048: Undeclared identifier 'DIR'.
error #2048: Undeclared identifier 'pd'.
I Include <dirent.h>
i have been banging away at this for some time and
am programming in mainly WIN32API
Have initially tried -:
DlgDirList(etc
DlgDirListComboBox(etc
and
DlgDirSelectComboBoxEx(
All of which do not appear to want to run on pocket pc