📄 kiutil.h
字号:
#ifndef AFX_KIUTIL_H__D2E1F380_468E_11D3_8D94_ECF8CA9E4339__INCLUDED_
#define AFX_KIUTIL_H__D2E1F380_468E_11D3_8D94_ECF8CA9E4339__INCLUDED_
// 偪傚偭偲曋棙偐傕抦傟側偄娭悢孮乽kiutil乿
//
// VC++ 偺僣儕乕偱傂偲傑偲傔偱昞帵偝偣傞偨傔偵僋儔僗壔
// 偟偨偩偗偱丄幚偼慡晹 public & static 偩偭偨傝偡傞丅(^^;
class kiutil
{
public:
// 僞僀儉僗僞儞僾
// WIN( 0.1 millisec from 1601.1.1 )
static void timeSet( const char* fname, FILETIME* pft );
// DOS( 0-4:day 5-8:month 9-15:year+1980, 0-4:sec/2 5-10:min 11-15:hour )
static void timeSet( const char* fname, WORD date, WORD time );
// UNIX( sec from 1970.1.1 )
static void timeSet( const char* fname, DWORD sec );
// 僷僗暥帤楍
// 伀嵟弶偵昁偢僐儗傪屇傫偱偍偔偙偲両
static void pathInit();
// 憡懳僷僗傪梌偊傞偲 [晄惓暥帤彍嫀],[暋悢奒憌makeDir] 傪峴偆
static char* pathMake( char* path );
// 愨懳僷僗傪梌偊傞偲 [暋悢奒憌makeDir]
static void pathMakeAbs( char* path );
// y偵嵟屻偺\, d偵嵟屻偺. 偺埵抲傪擖傟傞
static void pathSplit( const char* path, int* y, int* d );
// 奼挘巕
static const char* pathExt( const char* path );
// 僼傽僀儖柤
static const char* pathName( const char* path );
// window
// 嫮惂揑偵慜柺傊丅( kazubon巵偺 TClock 偺僜乕僗傛傝丅姶幱! )
static void wndFront( HWND wnd );
// 偦偺懠
// fgets夵掶斉(CR/LF/CRLF傪夵峴偲擣掕丅夵峴僐乕僪偼娷傔側偄暥帤楍傪曉偡)
static char* getline( char* str, int size, FILE* fp );
// 奼挘巕曄姺
static void getOriginalName( char* nw, const char* od, char* ext );
// 曄悢
private:
static char lb[256];
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -