visual c++ - Create directory in C++ -


i'm making simple game in directx , c++. want create directory in documents settings etc.

but don't know how need this?

can me?

you can use visual studio's <filesystem>

there function create_directory has signature

template<class path> inline bool create_directory(    const path& pval ); 

you can find user's documents directory using shgetknownfolderpath has signature

hresult shgetknownfolderpath(   _in_     refknownfolderid rfid,   _in_     dword            dwflags,   _in_opt_ handle           htoken,   _out_    pwstr            *ppszpath ); 

in case refknownfolderid want use folderid_documents

note specific visual studio. c++ <filesystem> library still in works (i.e. experimental) now, coming soon!


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -