This is my code. It runs but not thing happen
#include <windows.h>
#include <iostream>
#include <string>
using namespace std;
void CreateFolder(const LPCWSTR path)
{
if(!CreateDirectory(path ,NULL))
{
return;
}
}
void main()
{
LPCWSTR x;
string s = "E:\\data\\";
x = (LPCWSTR)s.c_str();
CreateFolder(x);
}