How can I create file in NOKIA mobile phone memory disk?
-
How can I create file in NOKIA mobile phone memory disk? How can I create dirrectory in NOKIA mobile phone memory disk? My mobile phone is Nokia N72. I can access its memory disk after I connect it wity my computer. Its directory is 'My Computer\\Nokia N72\\memorydisk\\' I failed to access it with the following code: CString csNokiaDir("My Computer"); bFindFile=finder.FindFile(csNokiaDir); csNokiaDir = "My Computer\\Nokia N72"; bFindFile=finder.FindFile(csNokiaDir); csNokiaDir = "My Computer\\Nokia N72\\memorydisk"; I get another directory by the following MFC code: BROWSEINFO bi; TCHAR Buffer[512]=""; TCHAR FullPath[512]=""; bi.hwndOwner = m_hWnd; bi.pidlRoot = NULL; bi.pszDisplayName = Buffer; bi.lpszTitle = "Select directory"; bi.ulFlags = BIF_RETURNONLYFSDIRS|BIF_EDITBOX|BIF_BROWSEFORCOMPUTER ; bi.lpfn = NULL; //回调函数,有时很有用 bi.lParam = 0; bi.iImage = 0; ITEMIDLIST* pidl = ::SHBrowseForFolder (&bi); if(::SHGetPathFromIDList (pidl,FullPath)) { m_sFonePath2 = FullPath; } The path I got is'::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{416651E4-9C3C-11D9-8BDE-F66BAD1E3F3A}\354533010872671\E:\' I used FindFile to check it and failed again. Does any one know how to handle this kind of directory?
-
How can I create file in NOKIA mobile phone memory disk? How can I create dirrectory in NOKIA mobile phone memory disk? My mobile phone is Nokia N72. I can access its memory disk after I connect it wity my computer. Its directory is 'My Computer\\Nokia N72\\memorydisk\\' I failed to access it with the following code: CString csNokiaDir("My Computer"); bFindFile=finder.FindFile(csNokiaDir); csNokiaDir = "My Computer\\Nokia N72"; bFindFile=finder.FindFile(csNokiaDir); csNokiaDir = "My Computer\\Nokia N72\\memorydisk"; I get another directory by the following MFC code: BROWSEINFO bi; TCHAR Buffer[512]=""; TCHAR FullPath[512]=""; bi.hwndOwner = m_hWnd; bi.pidlRoot = NULL; bi.pszDisplayName = Buffer; bi.lpszTitle = "Select directory"; bi.ulFlags = BIF_RETURNONLYFSDIRS|BIF_EDITBOX|BIF_BROWSEFORCOMPUTER ; bi.lpfn = NULL; //回调函数,有时很有用 bi.lParam = 0; bi.iImage = 0; ITEMIDLIST* pidl = ::SHBrowseForFolder (&bi); if(::SHGetPathFromIDList (pidl,FullPath)) { m_sFonePath2 = FullPath; } The path I got is'::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{416651E4-9C3C-11D9-8BDE-F66BAD1E3F3A}\354533010872671\E:\' I used FindFile to check it and failed again. Does any one know how to handle this kind of directory?
i am guess the problem is with the use of "My computer" in your drive path. The nokia should have a drive letter designated with it and this should allow you to access it like any other drive, like "C:\", not "My computer\\C:\\" as I am guessing you are doing right now in your code! As to what drive letter gets assigned to the nokia drive, I am not sure how you determine this at runtime with your application, so first step would be to get something hard-coded working =)
Yours Truly, The One and Only!