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. Mobile Development
  3. Mobile
  4. FindFirstFlashCard/FindNextFlashCard

FindFirstFlashCard/FindNextFlashCard

Scheduled Pinned Locked Moved Mobile
tutorialcsharpquestiondiscussion
3 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.
  • D Offline
    D Offline
    Dan Broomall
    wrote on last edited by
    #1

    I am attempting to access these functions through a .NET wrapper. I am using P/Invoke, but I am having very little success. Does anyone out there have an example of how to do this? When I can get it compiled and the call made, I get a NotSupportedException returned with very little explanation. Other times, I can't get it to compile because I have been unable to fill the Long variable (acting as a LPWIN32_FIND_DATA object) I am passing to the function call properly prior to use. Any thoughts on this? Thanks Dan

    C 1 Reply Last reply
    0
    • D Dan Broomall

      I am attempting to access these functions through a .NET wrapper. I am using P/Invoke, but I am having very little success. Does anyone out there have an example of how to do this? When I can get it compiled and the call made, I get a NotSupportedException returned with very little explanation. Other times, I can't get it to compile because I have been unable to fill the Long variable (acting as a LPWIN32_FIND_DATA object) I am passing to the function call properly prior to use. Any thoughts on this? Thanks Dan

      C Offline
      C Offline
      CJCraft com
      wrote on last edited by
      #2

      Hi, FindFirstFlashCard and FindNextFlashCard would be very difficult to P/Invoke in the .NET Compact Framework. But there is an answer on this here: http://www.cjcraft.com/DesktopDefault.aspx?tabid=38 Q. How do I find any removable storage devices that may be installed on the Pocket PC device in the .NET Compact Framework. DirectoryInfo rootDir = new DirectoryInfo(@"\"); FileAttributes attrStorageCard = FileAttributes.Directory | FileAttributes.Temporary; foreach( FileSystemInfo fsi in rootDir.GetFileSystemInfos() ) if ( (fsi.Attributes & attrStorageCard) == attrStorageCard ) //Found storage card

      D 1 Reply Last reply
      0
      • C CJCraft com

        Hi, FindFirstFlashCard and FindNextFlashCard would be very difficult to P/Invoke in the .NET Compact Framework. But there is an answer on this here: http://www.cjcraft.com/DesktopDefault.aspx?tabid=38 Q. How do I find any removable storage devices that may be installed on the Pocket PC device in the .NET Compact Framework. DirectoryInfo rootDir = new DirectoryInfo(@"\"); FileAttributes attrStorageCard = FileAttributes.Directory | FileAttributes.Temporary; foreach( FileSystemInfo fsi in rootDir.GetFileSystemInfos() ) if ( (fsi.Attributes & attrStorageCard) == attrStorageCard ) //Found storage card

        D Offline
        D Offline
        Dan Broomall
        wrote on last edited by
        #3

        THANK YOU, THANK YOU, THANK YOU! I couldn't understand why there wasn't a way implemented in managed code to find them. Thanks again Dan

        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