NO

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

Offline gromit

  • Member
  • *
  • Posts: 48
Open Folder In Pocket Pc
« on: May 12, 2009, 07: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)
    {
    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




Welcome to Planet Earth                    
Where the needs of the Greedy         
Are sadly allowed to outweigh         
the Needs Of The Needy                   

Profit used to be a By product
of Product

Product is now a By product
of Profit

Offline JohnF

  • Member
  • *
  • Posts: 1114
    • http://www.johnfindlay.plus.com/
Re: Open Folder In Pocket Pc
« Reply #1 on: May 12, 2009, 09: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

John

Offline gromit

  • Member
  • *
  • Posts: 48
Re: Open Folder In Pocket Pc
« Reply #2 on: May 15, 2009, 07: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
Gromit
Welcome to Planet Earth                    
Where the needs of the Greedy         
Are sadly allowed to outweigh         
the Needs Of The Needy                   

Profit used to be a By product
of Product

Product is now a By product
of Profit

Sxandy

  • 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. :(