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. Managed C++/CLI
  4. Get USB drive letter

Get USB drive letter

Scheduled Pinned Locked Moved Managed C++/CLI
helpc++tutorial
8 Posts 3 Posters 23 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.
  • U Offline
    U Offline
    User 10162804
    wrote on last edited by
    #1

    I m using VC++ VS2008 compact edition. I hv problem that when I m using "

    GetUsbDriveLetter(CString)

    at compiled time error occurred not defined because it is in winbase.h sdk function. And CE7 hv different sdk therefore it occurred. please suggest me how to get USB letter in CE7

    YogeshJadhav

    J 1 Reply Last reply
    0
    • U User 10162804

      I m using VC++ VS2008 compact edition. I hv problem that when I m using "

      GetUsbDriveLetter(CString)

      at compiled time error occurred not defined because it is in winbase.h sdk function. And CE7 hv different sdk therefore it occurred. please suggest me how to get USB letter in CE7

      YogeshJadhav

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      There is no GetUsbDriveLetter function in any Windows API (I don't know that function and a quick search did not found it too). Especially it can't be defined in winbase.h because that declares only plain Win32 functions which does not know the CString type. Also, please don't post the same question at multiple places. I suggest that you delete the duplicate in the ATL / WTL / STL Discussion Boards[^]. Even this forum is not the correct one. The C / C++ / MFC board would have been a better choice.

      U 2 Replies Last reply
      0
      • J Jochen Arndt

        There is no GetUsbDriveLetter function in any Windows API (I don't know that function and a quick search did not found it too). Especially it can't be defined in winbase.h because that declares only plain Win32 functions which does not know the CString type. Also, please don't post the same question at multiple places. I suggest that you delete the duplicate in the ATL / WTL / STL Discussion Boards[^]. Even this forum is not the correct one. The C / C++ / MFC board would have been a better choice.

        U Offline
        U Offline
        User 10162804
        wrote on last edited by
        #3

        sorry sir but how to delete it:~

        J 1 Reply Last reply
        0
        • J Jochen Arndt

          There is no GetUsbDriveLetter function in any Windows API (I don't know that function and a quick search did not found it too). Especially it can't be defined in winbase.h because that declares only plain Win32 functions which does not know the CString type. Also, please don't post the same question at multiple places. I suggest that you delete the duplicate in the ATL / WTL / STL Discussion Boards[^]. Even this forum is not the correct one. The C / C++ / MFC board would have been a better choice.

          U Offline
          U Offline
          User 10162804
          wrote on last edited by
          #4

          actual error is

          Error 294 error C3861: 'GetLogicalDriveStrings': identifier not found

          L J 2 Replies Last reply
          0
          • U User 10162804

            sorry sir but how to delete it:~

            J Offline
            J Offline
            Jochen Arndt
            wrote on last edited by
            #5

            It's too late now because there is a reply. That is the problem with cross posts: You have multiple threads on the same topic with replies from different users.

            1 Reply Last reply
            0
            • U User 10162804

              actual error is

              Error 294 error C3861: 'GetLogicalDriveStrings': identifier not found

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              And I have already answered that question.

              U 1 Reply Last reply
              0
              • L Lost User

                And I have already answered that question.

                U Offline
                U Offline
                User 10162804
                wrote on last edited by
                #7

                ok sir thank you.

                1 Reply Last reply
                0
                • U User 10162804

                  actual error is

                  Error 294 error C3861: 'GetLogicalDriveStrings': identifier not found

                  J Offline
                  J Offline
                  Jochen Arndt
                  wrote on last edited by
                  #8

                  I don't know much about Windows CE but AFAIK that does not use drive letters. It mounts drives like Unix at the root folder. A quick search indicates that you can might use the StoreManager (FindFirstStore / FindNextStore) to enumerate drives.

                  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