gecko-dev/cck/driver/wizshell.cpp

59 lines
1.4 KiB
C++
Raw Normal View History

1999-05-25 07:42:48 +00:00
#include "stdafx.h"
#include "WizardMachine.h"
#include "fstream.h"
#include "direct.h"
extern char iniFilePath[MAX_SIZE];
extern char customizationPath[MAX_SIZE];
extern CWizardMachineApp theApp;
//CString CDout="CD_output";
CString CDdir = CString(customizationPath) + "\\" + "CD_output";
void CreateRshell (void)
{
CWnd Mywnd;
1999-05-25 23:17:31 +00:00
// Mywnd.MessageBox(CString(iniFilePath),iniFilePath,MB_OK);
1999-05-25 07:42:48 +00:00
1999-05-25 23:17:31 +00:00
// Mywnd.MessageBox(CString(customizationPath),customizationPath,MB_OK);
1999-05-25 07:42:48 +00:00
ifstream part1("part1.ini");
ifstream part2("part2.ini");
_mkdir (CDdir);
CString Rsh = CDdir + "\\" +"rshell.ini";
// FILE* rshell = theApp.OpenAFile(CDdir +"rshell.ini", "w");
ofstream rshell(Rsh);
CString fvalue1=theApp.GetGlobal("ShellTitleText");
CString fvalue2=theApp.GetGlobal("ShellBgBitmap");
// char *fvalue3=GetGlobal("dialog_title_text");
CString fvalue4=theApp.GetGlobal("ShellInstallTextFile");
char jsprefname[200];
if(!part1) {
cout << "cannot open the file \n";
}
while (!part1.eof()) {
part1.getline(jsprefname,200);
// fprintf(globs, jsprefname);
// fprintf(globs, "\n");
rshell <<jsprefname<<"\n";
}
rshell <<"caption="<<fvalue1<<"\n";
rshell <<"bk_bitmap="<<fvalue2<<"\n";
rshell <<"button2_cmdline="<<fvalue4<<"\n";
// rshell <<"dialog_title_txt="<<fvalue3<<"\n";
if(!part2) {
cout << "cannot open the file \n";
}
while (!part2.eof()) {
part2.getline(jsprefname,200);
rshell <<jsprefname<<"\n";
}
rshell.close();
}