*********************************************************** ****************** /
/ * * /
/ * Function name: getAppdir * /
/ * Description: Get Application Directory. * /
/ * * /
/ ************************************************** ****************** /
Void getAppdir (CSTRING & Strappdir)
{
Tchar SzfullPath [MAX_PATH];
Tchar Szdir [_MAX_DIR];
Tchar szdrive [_max_drive];
// Get Application's Full Path.::GetModuleFileName (Null, SzfullPath, Max_Path);
// Break Full Path INTO SEPERATE Components._splitpath (SzfullPath, Szdrive, Szdir, Null, NULL);
// store application's drive and pathstrappdir.format (_t ("% s% s"), szdrive, szdir;}