/**
* 階層フォルダ作成
*
* @param path "test\\" "test\\out.txt" "c:\\test\\"
*/
static void createAllDirectoryW( LPCWSTR path )
{
WCHAR temp[1024+1];
wcscpy_s( temp, 1024, path );
int len = lstrlenW( temp );
for( int i = 0; i < len; i++ )
{
if( temp[i] == L'\\' || temp[i] == L'/' )
{
temp[i] = L'\0';
::CreateDirectoryW( temp, 0 );
temp[i] = L'\\';
}
}
}
最終更新:2012年04月24日 08:50