Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can I create file in NOKIA mobile phone memory disk?

How can I create file in NOKIA mobile phone memory disk?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++performancetutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fujoey
    wrote on last edited by
    #1

    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?

    D 1 Reply Last reply
    0
    • F fujoey

      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?

      D Offline
      D Offline
      DevMentor org
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups