Get USB drive letter
-
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
-
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
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 theCString
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. -
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 theCString
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.sorry sir but how to delete it:~
-
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 theCString
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.actual error is
Error 294 error C3861: 'GetLogicalDriveStrings': identifier not found
-
sorry sir but how to delete it:~
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.
-
actual error is
Error 294 error C3861: 'GetLogicalDriveStrings': identifier not found
-
ok sir thank you.
-
actual error is
Error 294 error C3861: 'GetLogicalDriveStrings': identifier not found
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.