searchpath.h

来自「用于误码仪测试」· C头文件 代码 · 共 39 行

H
39
字号
// SearchPath.h: interface for the CSearchPath class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SEARCHPATH_H__6A1B8BC2_6ADF_4E0B_97F0_F27DAC98001A__INCLUDED_)
#define AFX_SEARCHPATH_H__6A1B8BC2_6ADF_4E0B_97F0_F27DAC98001A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CSearchPath  
{
public:
	CSearchPath();
	virtual ~CSearchPath();
public:
	inline CString GetSystemPath() { return m_strSystemPath;};
	inline CString GetHomePath() { return m_strHomePath;};
	inline CString GetProgramPath() { return m_strProgramPath;};
	inline CString GetSettingPath() { return m_strSettingPath;};
	inline CString GetSystem32Path(){return m_strSystem32Path;};
protected:
	CString m_strSystemPath; //windows 目录  c:\windows
	CString m_strSystem32Path; //windows 目录  c:\windows\System32
	CString m_strHomePath; //软件主目录 d:\traffic
	CString m_strProjectPath;//软件设置目录 d:\traffic\project	
	CString m_strSettingPath; //软件设置目录 d:\traffic\setteing
	CString m_strProgramPath; //软件程序目录 d:\traffic\program

public:
	void SetDefaultPath(void);
protected:
	CString  GetFilePath(CString FileName,CString &strDrive,CString &strDir,CString &strName,CString&strExt);
	CString  GetFilePath(CString FileName);
};

#endif // !defined(AFX_SEARCHPATH_H__6A1B8BC2_6ADF_4E0B_97F0_F27DAC98001A__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?