46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
|
//
|
|||
|
// <20>p<EFBFBD>X<EFBFBD><58><EFBFBD>C<EFBFBD>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD>N<EFBFBD><4E><EFBFBD>X
|
|||
|
//
|
|||
|
#ifndef __CPATHLIB_INCLUDED__
|
|||
|
#define __CPATHLIB_INCLUDED__
|
|||
|
|
|||
|
#define WIN32_LEAN_AND_MEAN
|
|||
|
#include <windows.h>
|
|||
|
#include <stdio.h>
|
|||
|
#include <stdlib.h>
|
|||
|
#include <shlobj.h>
|
|||
|
#include <shlwapi.h>
|
|||
|
|
|||
|
#include <string>
|
|||
|
using namespace std;
|
|||
|
|
|||
|
class CPathlib
|
|||
|
{
|
|||
|
public:
|
|||
|
// <20>p<EFBFBD>X<EFBFBD>{<7B>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>l<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃p<CC83>X<EFBFBD>擾
|
|||
|
static string SplitPath( LPCSTR lpszPath );
|
|||
|
// <20>p<EFBFBD>X<EFBFBD>{<7B>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>l<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃t<CC83>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>擾(<28>g<EFBFBD><67><EFBFBD>q<EFBFBD>Ȃ<EFBFBD>)
|
|||
|
static string SplitFname( LPCSTR lpszPath );
|
|||
|
// <20>p<EFBFBD>X<EFBFBD>{<7B>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>l<EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃t<CC83>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>擾(<28>g<EFBFBD><67><EFBFBD>q<EFBFBD><71><EFBFBD><EFBFBD>)
|
|||
|
static string SplitFnameExt( LPCSTR lpszPath );
|
|||
|
|
|||
|
// <20>p<EFBFBD>X<EFBFBD>C<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̃p<CC83>X<EFBFBD>쐬(<28>g<EFBFBD><67><EFBFBD>q<EFBFBD><71><EFBFBD><EFBFBD>/<2F>Ȃ<EFBFBD><C882><EFBFBD><EFBFBD>p)
|
|||
|
static string MakePath( LPCSTR lpszPath, LPCSTR lpszFname );
|
|||
|
// <20>p<EFBFBD>X<EFBFBD>C<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>g<EFBFBD><67><EFBFBD>q<EFBFBD><71><EFBFBD><EFBFBD><EFBFBD>̃p<CC83>X<EFBFBD>쐬(<28>g<EFBFBD><67><EFBFBD>q<EFBFBD><71><EFBFBD>ʂɎw<C98E><77>)
|
|||
|
static string MakePathExt( LPCSTR lpszPath, LPCSTR lpszFname, LPCSTR lpszExt );
|
|||
|
|
|||
|
// <20>x<EFBFBD>[<5B>X<EFBFBD>p<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>lj<EFBFBD><C789>p<EFBFBD>X<EFBFBD>̎<EFBFBD><CC8E>ނׂăp<C483>X<EFBFBD><58><EFBFBD>쐬<EFBFBD><EC90AC><EFBFBD><EFBFBD>
|
|||
|
// <20>lj<EFBFBD><C789>p<EFBFBD>X<EFBFBD><58><EFBFBD><EFBFBD><EFBFBD>p<CE83>X<EFBFBD>Ȃ<EFBFBD><C882><EFBFBD><CE82>̂܂܁C<DC81><43><EFBFBD>p<CE83>X<EFBFBD>Ȃ<EFBFBD><C882>x<CE83>[<5B>X<EFBFBD>p<EFBFBD>X<EFBFBD>ɒlj<C992>
|
|||
|
static string CreatePath( LPCSTR lpszBasePath, LPCSTR lpszPath );
|
|||
|
|
|||
|
// <20>t<EFBFBD>H<EFBFBD><48><EFBFBD>_<EFBFBD>I<EFBFBD><49>
|
|||
|
static BOOL SelectFolder( HWND hWnd, LPCSTR lpszTitle, LPSTR lpszFolder );
|
|||
|
|
|||
|
protected:
|
|||
|
static INT CALLBACK BffCallback( HWND hWnd, UINT uMsg, LPARAM lParam, WPARAM wParam );
|
|||
|
private:
|
|||
|
};
|
|||
|
|
|||
|
#endif // !__CPATHLIB_INCLUDED__
|
|||
|
|