Hi ALL,
I need to access Windows and other folders in my Application for Windows Mobile 6.53 through OPENFILENAME. I am able to access \My Documents folder alone.
But not any other folders under \Windows.
My Code:
Pls help.Code:OPENFILENAME ofn; ZeroMemory(&ofn, sizeof(OPENFILENAME)); ofn.lStructSize = sizeof(OPENFILENAME); ofn.hwndOwner = hwnd; ofn.lpstrFilter = _T("Application Files (*.exe)\0*.exe\0LNK Files (*.lnk)\0*.lnk\0All Files (*.*)\0*.*\0"); ofn.lpstrFile = filename; ofn.nMaxFile = MAX_PATH; ofn.nFilterIndex = 1; ofn.lpstrTitle = (LPCWSTR)IDS_BROWSEFILE; ofn.lpstrFileTitle = NULL ; ofn.nMaxFileTitle = 0 ; ofn.lpstrInitialDir = _T("\\My Documents\\My Pictures") ; ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_EXPLORER; return GetOpenFileName(&ofn)