CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Posts
    1

    CreateFile function failed with Mapped drive

    I use CreateFile function to check valid path of a text file saved in another PC (this file has been already mapped to my PC) like this:

    HANDLE hFile;
    hFile = CreateFile(strFile,GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);

    Sometimes,the hFile variable return INVALID_HANDLE_VALUE but then I open this text file again in Window Explorer,this function run well.
    Please help!
    Thanks

    hFile


  2. #2
    Join Date
    Aug 2009
    Posts
    1

    Exclamation Re: CreateFile function failed with Mapped drive

    Any idea?

    I have the same problem trying to open a file from my mapped drive path

    Y:\terrain\dted\DTED2\dted\W118\N32.dt2

    Y is mapped to a network path

    I found it is case sensitive. Is it true?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured