开发者

Unable to create Directory using CreateDirectoryW Function in WIN64

I am unable to create directory usin开发者_StackOverflowg CreateDirectoryW(). Kindly help me.


This won't work unless c:\\A already exists. Check the error (ERROR_PATH_NOT_FOUND ?). Does the user have permissions to write to that part of the disk?

From the docs

One or more intermediate directories do not exist; this function will only create the final directory in the path.

The code will operate the same on both machines, so this must be environment-specific.

In general all your Win32 API calls should check and handle errors. That will speed up resolution of future issues like this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜