开发者

creating folder in C on windows

开发者 https://www.devze.com 2023-01-15 10:04 出处:网络
Using Visual Studio 2008 C++, how can I create a folder using code. 开发者_如何学GoFor some reason, a simple CreateDirectory isn\'t working. Are you by any chance trying to create a folder in your Vis

Using Visual Studio 2008 C++, how can I create a folder using code. 开发者_如何学GoFor some reason, a simple CreateDirectory isn't working.


Are you by any chance trying to create a folder in your Visual Studio solution? If so, you could use code to do that, but you still have to right click the solution and add existing items.


Change the

CreateDirectory("c:\\dirn.txt");

to

CreateDirectory("c:\\dirn.txt", null);
0

精彩评论

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