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);
精彩评论