I'm trying to create a set of folders using a for loop. I am running into problems. I've tried searching (I would have assumed this would be a common thing people would want to do) but no luck. I have created a minimal segment of code that reproduces the error. This particular segment should produce folders
I couldn't remember which files in the header were needed for these specific tasks, so I just left all of the ones in my full code in.
The error I get is
'_mkdir' : cannot convert parameter 1 from 'std::basic_string<_Elem,_Traits,_Ax>; to 'constchar *
If I change the
_mkdir(output_dir+t_string);
line to
CreateDirectory(output_dir+t_string,NULL);
I get the error
'CreateDirectoryW' : cannot convert parameter 1 from 'std::basic+string<_Elem,_Traits,_Ax>' to 'LPCWSTR'
I'm happy to use a windows specific solution. I'd probably prefer not to use any 3rd party software. Hopefully someone can help me work out a solution.