Author Topic: Open Folder In Pocket Pc  (Read 2284 times)


  • Guest
Open Folder In Pocket Pc
« on: May 12, 2009, 08:10:32 am »
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)
    //wcscpy(filname,L"My Documents\\MyFolder\\");       
DIR *pd;
pd=  opendir(L"My Documents\\MyFolder\\");

return TRUE;

  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 -:



All of which do not appear to want to run on pocket pc

Offline JohnF

  • Member
  • *
  • Posts: 1114
Re: Open Folder In Pocket Pc
« Reply #1 on: May 12, 2009, 10:30:54 am »
I imagine that you need to specify the complete path.

Code: [Select]
pd=  opendir(L"C:\\Documents and Settings\\Name\\My Documents\\MyFolder\\");

And it's _DIR and _opendir



  • Guest
Re: Open Folder In Pocket Pc
« Reply #2 on: May 15, 2009, 08:19:57 am »
Thanks John that went a long way towards solving my problem

i was over complicating matters in the end.

So Big Thanks


  • Guest
Re: Open Folder In Pocket Pc
« Reply #3 on: November 07, 2014, 08:49:46 am »
With my old HTC Touch Diamond 2 with Windows Mobile 6.5, I had the same problem.
With my very old ASUS 696 with Windows Mobile 6.1, it worked.
It seemed to be a problem with the permissions. :(