Windows NT: You can use paths longer than MAX_PATH characters by calling the wide (W) version of CreateFile and prepending "\\?\" to the path. The "\\?\" tells the function to turn off path parsing. This lets you use paths that are nearly 32,000 Unicode characters long. However, each component in the path cannot be more than MAX_PATH characters long. You must use fully-qualified paths with this technique. This also works with UNC names. The "\\?\" is ignored as part of the path. For example, "\\?\C:\myworld\private" is seen as "C:\myworld\private", and "\\?\UNC\tom_1\hotstuff\coolapps" is seen as "\\tom_1\hotstuff\coolapps". 我英语不好,可能跟上边这段有关,谁能帮忙讲解一下

解决方案 »

  1.   

    这些话主要是说你可以传递长达_MAX_PATH,在NT上,你可以使用W版本来超越这一限制,并在
    路径前面加上"\\?|",如果加上这些字符,CreatFileW会移去这些字符,并允许你传递一个几
    乎32000个Unicode字符长的路径,但是,使用这些字符时必须全路径名.
      这是我的理解,不是翻译
      

  2.   

    我还是把vpacket.vxd和应用程序放在同一目录,应该是相对的路径