HexEdit/Misc.cpp
void LoadHist(std::vector<CString> & hh, LPCSTR name, size_t smax)
{
	CString ss, entry;
	CString fmt = CString(name) + "%d";

	hh.clear();
	for (int ii = smax; ii > 0; ii--)
	{
		entry.Format(fmt, ii);
		ss = theApp.GetProfileString("History", entry);
		if (!ss.IsEmpty())
			hh.push_back(ss);
	}
}
// LoadHist reads a list of history strings from the registry

LoadHist reads a list of history strings from the registry
LoadHist reads a list of history strings from the registry
void LoadHist(std::vector<CString> & hh, LPCSTR name, size_t smax)
{
	CString ss, entry;
	CString fmt = CString(name) + "%d";
	hh.clear();
	for (int ii = smax; ii > 0; ii--)
	{
		entry.Format(fmt, ii);
		ss = theApp.GetProfileString("History", entry);
		if (!ss.IsEmpty())
			hh.push_back(ss);
	}
}
void LoadHist ( std :: vector < CString > & hh , LPCSTR name , size_t smax ) { CString ss , entry ; CString fmt = CString ( name ) + " " ; hh . clear ( ) ; for ( int ii = smax ; ii > 0 ; ii -- ) { entry . Format ( fmt , ii ) ; ss = theApp . GetProfileString ( " " , entry ) ; if ( ! ss . IsEmpty ( ) ) hh . push_back ( ss ) ; } }
LoadHist reads a list of history strings from the registry
LoadHist reads a list of history strings from the registry