#include "stdafx.h" #include "globals.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; // Mywnd.MessageBox(CString(iniFilePath),iniFilePath,MB_OK); // Mywnd.MessageBox(CString(customizationPath),customizationPath,MB_OK); 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=GetGlobal("ShellTitleText"); CString fvalue2=GetGlobal("ShellBgBitmap"); // char *fvalue3=GetGlobal("dialog_title_text"); CString fvalue4=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 <