This commit is contained in:
racham%netscape.com 1999-02-05 01:02:27 +00:00
Родитель 7d5b5f344c
Коммит b5ee3846dc
3 изменённых файлов: 11 добавлений и 8 удалений

Просмотреть файл

@ -55,7 +55,7 @@ Width=106
Height=54 Height=54
dll=NULL dll=NULL
function=GenerateFileList function=GenerateFileList
parameters=..\cckwiz\ase\NCIFiles\*.NCI parameters=cckwiz\ase\NCIFiles\*.NCI
[Widget 21] [Widget 21]

Просмотреть файл

@ -87,7 +87,7 @@ Height=99
subsection=Options for ComboBox1 subsection=Options for ComboBox1
dll=NULL dll=NULL
function=GenerateDirList function=GenerateDirList
parameters=..\cckwiz\customizations\*.* parameters=cckwiz\customizations\*.*
[Options for ComboBox1] [Options for ComboBox1]

Просмотреть файл

@ -104,8 +104,9 @@ BOOL CWizardMachineApp::InitInstance()
Path = GetModulePath(); Path = GetModulePath();
_getcwd(currDirPath, MAX_SIZE); //_getcwd(currDirPath, MAX_SIZE);
strcat(currDirPath, "\\"); //strcat(currDirPath, "\\");
strcpy(currDirPath, Path);
CString outputFile = Path + "output.dat"; CString outputFile = Path + "output.dat";
out = OpenAFile(outputFile, "w"); out = OpenAFile(outputFile, "w");
@ -152,17 +153,19 @@ BOOL CWizardMachineApp::InitInstance()
strncpy(tmpStr, iniFile, strlen(iniFile) - strlen(strstr(iniFile,"iniFiles"))); strncpy(tmpStr, iniFile, strlen(iniFile) - strlen(strstr(iniFile,"iniFiles")));
} }
strcat(currDirPath, "..\\..\\");
strcpy(iniFilePath, currDirPath); strcpy(iniFilePath, currDirPath);
strcat(iniFilePath, "..\\"); //strcat(iniFilePath, "..\\");
strcpy(imagesPath, currDirPath); strcpy(imagesPath, currDirPath);
strcat(imagesPath, "..\\"); //strcat(imagesPath, "..\\");
if (tmpStr) { if (tmpStr) {
strcat(iniFilePath, tmpStr); strcat(iniFilePath, tmpStr);
strcat(imagesPath, tmpStr); strcat(imagesPath, tmpStr);
strcpy(customizationPath, currDirPath); strcpy(customizationPath, currDirPath);
strcat(customizationPath, "..\\"); //strcat(customizationPath, "..\\");
strcat(customizationPath, tmpStr); strcat(customizationPath, tmpStr);
strcat(customizationPath, "customizations\\"); strcat(customizationPath, "customizations\\");
} }
@ -1249,7 +1252,7 @@ void CWizardMachineApp::GenerateList(CString action, WIDGET* targetWidget, CStri
WIDGET* curWidget = targetWidget; WIDGET* curWidget = targetWidget;
CFileFind fileList; CFileFind fileList;
BOOL dirFound = fileList.FindFile(parentDirPath); BOOL dirFound = fileList.FindFile(CString(currDirPath) + parentDirPath);
if(curWidget->type == "ListBox") if(curWidget->type == "ListBox")
{ {