📄 net_utils.cpp
字号:
#include "stdafx.h"
#include "net_utils.h"
extern "C" VOID WINAPI recursive_create_dir(LPCTSTR dir)
{
CString str(dir);
CString path;
int idx = 0;
while(1)
{
idx = str.Find('\\');
if( idx == -1 )
break;
path += str.Left(idx);
if( path.Right(1) != _T(":") ) // like C:
{
CreateDirectory(path, NULL);
}
path += _T("\\");
str.Delete(0, idx+1);
}
}
void add_backslash(CString& str)
{
if( str.Right(1) != _T("\\") )
str+= _T("\\");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -