2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
function OnFinish(selProj, selObj) {
|
|
|
|
try {
|
2010-11-18 17:47:28 +08:00
|
|
|
// var WizardVersion = wizard.FindSymbol('WIZARD_VERSION');
|
2010-11-18 15:46:59 +08:00
|
|
|
|
|
|
|
// Create symbols based on the project name
|
|
|
|
var strProjectPath = wizard.FindSymbol('PROJECT_PATH');
|
|
|
|
var strProjectName = wizard.FindSymbol('PROJECT_NAME');
|
|
|
|
|
|
|
|
wizard.AddSymbol('PROJECT_NAME_LOWER', strProjectName.toLowerCase(), false);
|
|
|
|
wizard.AddSymbol('PROJECT_NAME_UPPER', strProjectName.toUpperCase(), false);
|
|
|
|
|
2010-11-19 14:43:13 +08:00
|
|
|
if (strProjectName.length >= 6) {
|
|
|
|
wizard.AddSymbol('PRO_NAME_PREFIX', strProjectName.substr(0, 6).toUpperCase(), false);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
var strRes = '_RES';
|
|
|
|
var strNewFormId = strProjectName + strRes.substr(0, (6 - strProjectName.length));
|
|
|
|
|
|
|
|
wizard.AddSymbol('PRO_NAME_PREFIX', strNewFormId.toUpperCase(), false);
|
|
|
|
}
|
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
// Set current year symbol
|
|
|
|
var d = new Date();
|
|
|
|
var nYear = 0;
|
|
|
|
nYear = d.getFullYear();
|
|
|
|
wizard.AddSymbol("CCX_CURRENT_YEAR", nYear);
|
|
|
|
wizard.AddSymbol("CCX_CURRENT_DATE", d.toString());
|
|
|
|
|
|
|
|
selProj = CreateCustomProject(strProjectName, strProjectPath);
|
|
|
|
AddConfig(selProj, strProjectName);
|
|
|
|
AddFilters(selProj);
|
|
|
|
|
|
|
|
var InfFile = CreateCustomInfFile();
|
|
|
|
AddFilesToCustomProj(selProj, strProjectName, strProjectPath, InfFile);
|
|
|
|
PchSettings(selProj);
|
|
|
|
InfFile.Delete();
|
|
|
|
|
|
|
|
selProj.Object.Save();
|
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
if (e.description.length != 0)
|
|
|
|
SetErrorInfo(e);
|
|
|
|
return e.number
|
|
|
|
}
|
|
|
|
}
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
function CreateCustomProject(strProjectName, strProjectPath) {
|
|
|
|
try {
|
|
|
|
var strProjTemplatePath = wizard.FindSymbol('PROJECT_TEMPLATE_PATH');
|
|
|
|
var strProjTemplate = '';
|
|
|
|
strProjTemplate = strProjTemplatePath + '\\default.vcproj';
|
|
|
|
|
|
|
|
var Solution = dte.Solution;
|
|
|
|
var strSolutionName = "";
|
|
|
|
if (wizard.FindSymbol("CLOSE_SOLUTION")) {
|
|
|
|
Solution.Close();
|
|
|
|
strSolutionName = wizard.FindSymbol("VS_SOLUTION_NAME");
|
|
|
|
if (strSolutionName.length) {
|
|
|
|
var strSolutionPath = strProjectPath.substr(0, strProjectPath.length - strProjectName.length);
|
|
|
|
Solution.Create(strSolutionPath, strSolutionName);
|
|
|
|
}
|
|
|
|
}
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-26 17:30:34 +08:00
|
|
|
// Create vcproj.user file
|
|
|
|
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
|
|
|
|
var strUserTarget = strProjectName + ".uphone.vcproj.user";
|
|
|
|
var strUserPath = FileSys.BuildPath(strProjectPath, strUserTarget);
|
|
|
|
|
|
|
|
var astrParentPath = new Array();
|
|
|
|
astrParentPath[0] = strProjectPath;
|
|
|
|
while (astrParentPath.length) {
|
|
|
|
var strPath = astrParentPath.pop();
|
|
|
|
var strParentPath = FileSys.GetParentFolderName(strPath);
|
|
|
|
|
|
|
|
if (!FileSys.FolderExists(strParentPath)) {
|
|
|
|
astrParentPath.push(strPath);
|
|
|
|
astrParentPath.push(strParentPath);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
FileSys.CreateFolder(strPath);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var file = FileSys.OpenTextFile(strUserPath, 2, true);
|
|
|
|
if (file == null) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var strUserValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?><VisualStudioUserFile ProjectType=\"Visual C++\" Version=\"9.00\" ShowAllFiles=\"true\"><Configurations><Configuration Name=\"Debug|Win32\"><DebugSettings Command=\"TG3_RunDLL.exe\" CommandArguments=\"$(TargetPath)\"/></Configuration></VisualStudioUserFile>";
|
|
|
|
file.WriteLine(strUserValue);
|
|
|
|
file.Close();
|
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
var strProjectNameWithExt = '';
|
|
|
|
strProjectNameWithExt = strProjectName + '.uphone.vcproj';
|
|
|
|
|
|
|
|
var oTarget = wizard.FindSymbol("TARGET");
|
|
|
|
var prj;
|
|
|
|
if (wizard.FindSymbol("WIZARD_TYPE") == vsWizardAddSubProject) // vsWizardAddSubProject
|
|
|
|
{
|
|
|
|
var prjItem = oTarget.AddFromTemplate(strProjTemplate, strProjectNameWithExt);
|
|
|
|
prj = prjItem.SubProject;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
prj = oTarget.AddFromTemplate(strProjTemplate, strProjectPath, strProjectNameWithExt);
|
|
|
|
}
|
|
|
|
var fxtarget = wizard.FindSymbol("TARGET_FRAMEWORK_VERSION");
|
|
|
|
if (fxtarget != null && fxtarget != "") {
|
|
|
|
fxtarget = fxtarget.split('.', 2);
|
|
|
|
if (fxtarget.length == 2)
|
|
|
|
prj.Object.TargetFrameworkVersion = parseInt(fxtarget[0]) * 0x10000 + parseInt(fxtarget[1])
|
|
|
|
}
|
|
|
|
return prj;
|
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
throw e;
|
|
|
|
}
|
2010-11-18 10:39:59 +08:00
|
|
|
}
|
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
function AddFilters(proj) {
|
|
|
|
try {
|
|
|
|
var strSrcFilter = wizard.FindSymbol('SOURCE_FILTER');
|
|
|
|
var group = proj.Object.AddFilter('source');
|
|
|
|
group.Filter = strSrcFilter;
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
strSrcFilter = wizard.FindSymbol('INCLUDE_FILTER');
|
|
|
|
group = proj.Object.AddFilter('include');
|
|
|
|
group.Filter = strSrcFilter;
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
if (wizard.FindSymbol('CCX_USE_UI_RESOURCE')) {
|
|
|
|
strSrcFilter = wizard.FindSymbol('RESOURCE_FILTER');
|
|
|
|
group = proj.Object.AddFilter('resource');
|
|
|
|
group.Filter = strSrcFilter;
|
|
|
|
}
|
|
|
|
|
|
|
|
strSrcFilter = wizard.FindSymbol('MAKEFILE_FILTER');
|
|
|
|
group = proj.Object.AddFilter('makefile');
|
|
|
|
group.Filter = strSrcFilter;
|
|
|
|
|
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
throw e;
|
|
|
|
}
|
2010-11-18 10:39:59 +08:00
|
|
|
}
|
|
|
|
|
2010-11-18 17:47:28 +08:00
|
|
|
// Configurations data
|
|
|
|
var nNumConfigs = 2;
|
|
|
|
|
|
|
|
var astrConfigName = new Array();
|
|
|
|
astrConfigName[0] = "Debug";
|
|
|
|
astrConfigName[1] = "Release";
|
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
function AddConfig(proj, strProjectName) {
|
|
|
|
try {
|
2010-11-18 17:47:28 +08:00
|
|
|
proj.Object.Keyword = "uPhoneProj";
|
2010-11-23 18:20:46 +08:00
|
|
|
var strPrjTG3Dir = '../../PRJ_TG3';
|
2010-11-18 17:47:28 +08:00
|
|
|
wizard.AddSymbol('PROJECT_PRJ_TG3_DIR', strPrjTG3Dir, false);
|
|
|
|
|
|
|
|
// header files and libraries directories
|
2010-11-18 15:46:59 +08:00
|
|
|
var strOutputDir = '../../PRJ_TG3/LIB/Win32Lib';
|
|
|
|
var strCurIncludeDir = '..\\..\\PRJ_TG3\\Include;..\\..\\PRJ_TG3\\Include\\MTAPI;..\\..\\PRJ_TG3\\Include\\ThirdParty;..\\..\\PRJ_TG3\\Include\\TCOM;..\\..\\PRJ_TG3\\Include\\OpenGL';
|
|
|
|
strCurIncludeDir += ';.;.\\Classes;.\\uphone;.\\uphone\\Res;..\\cocos2dx;..\\cocos2dx\\include';
|
|
|
|
|
2010-11-18 17:47:28 +08:00
|
|
|
var strDefinitions = 'WIN32;_CONSOLE;_TRANZDA_VM_;SS_MAKEDLL';
|
2010-11-18 15:46:59 +08:00
|
|
|
var strDependLibs = 'WS2_32.Lib EosConfig.lib SoftSupport.lib TG3_DLL.lib libcocos2d.lib';
|
|
|
|
var strCurLibsDir = '../../PRJ_TG3/Common/ICU/lib;../../PRJ_TG3/Mtapi/Win32/lib;../../PRJ_TG3/LIB/Win32Lib;../../PRJ_TG3/Common/SoftSupport';
|
|
|
|
var strImportLib = '$(OutDir)/' + wizard.FindSymbol("PROJECT_NAME") + '.lib';
|
|
|
|
var strOutputFile = '$(OutDir)/' + wizard.FindSymbol("PROJECT_NAME") + '.dll';
|
2010-11-18 17:47:28 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
if (wizard.FindSymbol('CCX_USE_BOX2D')) {
|
|
|
|
strCurIncludeDir += ';..\\;..\\Box2D';
|
|
|
|
strDependLibs += ' libBox2d.lib';
|
|
|
|
}
|
|
|
|
if (wizard.FindSymbol('CCX_USE_CHIPMUNK')) {
|
|
|
|
strCurIncludeDir += ';..\\chipmunk\\include\\chipmunk';
|
2010-11-23 18:20:46 +08:00
|
|
|
strDependLibs += ' chipmunk.lib';
|
2010-11-18 15:46:59 +08:00
|
|
|
}
|
|
|
|
if (wizard.FindSymbol('CCX_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE')) {
|
|
|
|
strCurIncludeDir += ';..\\CocosDenshion\\Include';
|
|
|
|
strDependLibs += ' libCocosDenshion.lib';
|
2010-11-18 10:39:59 +08:00
|
|
|
}
|
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
if (wizard.FindSymbol("CCX_USE_TCOM_SUPPORT")) {
|
|
|
|
strDefinitions = strDefinitions + ';__TCOM_SUPPORT__';
|
|
|
|
}
|
|
|
|
|
2010-11-18 17:47:28 +08:00
|
|
|
// create configure
|
|
|
|
var nCntr;
|
2010-11-19 14:56:57 +08:00
|
|
|
for (nCntr = 0; nCntr < nNumConfigs; nCntr++) {
|
|
|
|
|
|
|
|
// Check if it's Debug configuration
|
|
|
|
var bDebug = false;
|
|
|
|
if (astrConfigName[nCntr].search("Debug") != -1)
|
|
|
|
bDebug = true;
|
|
|
|
|
|
|
|
var config = proj.Object.Configurations(astrConfigName[nCntr]);
|
|
|
|
|
|
|
|
if (bDebug) {
|
|
|
|
strDefinitions = '_DEBUG;' + strDefinitions;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
strDefinitions = 'NDEBUG;' + strDefinitions;
|
|
|
|
}
|
|
|
|
|
|
|
|
config.InheritedPropertySheets = '$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops';
|
|
|
|
config.OutputDirectory = strOutputDir;
|
|
|
|
config.IntermediateDirectory = '$(ConfigurationName).uphone';
|
|
|
|
config.ConfigurationType = '2';
|
|
|
|
|
|
|
|
var CLTool = config.Tools('VCCLCompilerTool');
|
|
|
|
if (bDebug) {
|
|
|
|
CLTool.RuntimeLibrary = rtMultiThreadedDebug;
|
|
|
|
CLTool.MinimalRebuild = true;
|
|
|
|
CLTool.DebugInformationFormat = debugEditAndContinue;
|
|
|
|
CLTool.BasicRuntimeChecks = runtimeBasicCheckAll;
|
|
|
|
CLTool.Optimization = optimizeDisabled;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
CLTool.RuntimeLibrary = rtMultiThreaded;
|
|
|
|
CLTool.ExceptionHandling = false;
|
|
|
|
CLTool.DebugInformationFormat = debugDisabled;
|
|
|
|
}
|
|
|
|
CLTool.AdditionalIncludeDirectories = strCurIncludeDir;
|
|
|
|
CLTool.PreprocessorDefinitions = strDefinitions;
|
|
|
|
CLTool.RuntimeLibrary = '3';
|
|
|
|
CLTool.StructMemberAlignment = '3';
|
|
|
|
CLTool.TreatWChar_tAsBuiltInType = 'false';
|
|
|
|
CLTool.UsePrecompiledHeader = '0';
|
|
|
|
CLTool.WarningLevel = '3';
|
|
|
|
CLTool.ForcedIncludeFiles = '';
|
|
|
|
|
|
|
|
var LinkTool = config.Tools('VCLinkerTool');
|
|
|
|
if (bDebug) {
|
|
|
|
LinkTool.LinkIncremental = linkIncrementalYes;
|
|
|
|
LinkTool.GenerateDebugInformation = true;
|
|
|
|
LinkTool.GenerateMapFile = 'true';
|
|
|
|
LinkTool.MapExports = 'true';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
LinkTool.LinkIncremental = linkIncrementalNo;
|
|
|
|
}
|
|
|
|
LinkTool.AdditionalDependencies = strDependLibs;
|
|
|
|
LinkTool.OutputFile = strOutputFile;
|
|
|
|
LinkTool.AdditionalLibraryDirectories = strCurLibsDir;
|
|
|
|
LinkTool.SubSystem = '1';
|
|
|
|
LinkTool.RandomizedBaseAddress = '1';
|
|
|
|
LinkTool.DataExecutionPrevention = '0';
|
|
|
|
LinkTool.ImportLibrary = strImportLib;
|
|
|
|
LinkTool.TargetMachine = '1';
|
|
|
|
|
|
|
|
var PostBuildTool = config.Tools("VCPostBuildEventTool");
|
|
|
|
PostBuildTool.Description = "Performing registration...";
|
|
|
|
var strResDir = "..\\..\\NEWPLUS\\TDA_DATA\\Data\\" + strProjectName + "\\";
|
|
|
|
var strPostCmd = "mkdir " + strResDir;
|
|
|
|
strPostCmd += "\r\nxcopy /E /Y .\\Resource\\*.* " + strResDir;
|
|
|
|
PostBuildTool.CommandLine = strPostCmd;
|
|
|
|
}
|
2010-11-18 15:46:59 +08:00
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
throw e;
|
|
|
|
}
|
2010-11-18 10:39:59 +08:00
|
|
|
}
|
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
function PchSettings(proj) {
|
2010-11-18 10:39:59 +08:00
|
|
|
}
|
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
function DelFile(fso, strWizTempFile) {
|
|
|
|
try {
|
|
|
|
if (fso.FileExists(strWizTempFile)) {
|
|
|
|
var tmpFile = fso.GetFile(strWizTempFile);
|
|
|
|
tmpFile.Delete();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
throw e;
|
|
|
|
}
|
2010-11-18 10:39:59 +08:00
|
|
|
}
|
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
function CreateCustomInfFile() {
|
|
|
|
try {
|
|
|
|
var fso, TemplatesFolder, TemplateFiles, strTemplate;
|
|
|
|
fso = new ActiveXObject('Scripting.FileSystemObject');
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
var TemporaryFolder = 2;
|
|
|
|
var tfolder = fso.GetSpecialFolder(TemporaryFolder);
|
|
|
|
var strTempFolder = tfolder.Drive + '\\' + tfolder.Name;
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
var strWizTempFile = strTempFolder + "\\" + fso.GetTempName();
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
var strTemplatePath = wizard.FindSymbol('TEMPLATES_PATH');
|
|
|
|
var strInfFile = strTemplatePath + '\\Templates.inf';
|
|
|
|
wizard.RenderTemplate(strInfFile, strWizTempFile);
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
var WizTempFile = fso.GetFile(strWizTempFile);
|
|
|
|
return WizTempFile;
|
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
throw e;
|
|
|
|
}
|
2010-11-18 10:39:59 +08:00
|
|
|
}
|
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
function GetTargetName(strName, strProjectName) {
|
|
|
|
try {
|
|
|
|
var strTarget = strName;
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
var nIndex = strName.indexOf("root");
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
if (nIndex >= 0) {
|
2010-11-19 14:43:13 +08:00
|
|
|
var strMid = strProjectName;
|
|
|
|
if (strName.indexOf("_res_") >= 0) {
|
|
|
|
strMid = wizard.FindSymbol('PROJECT_NAME_LOWER');
|
|
|
|
}
|
|
|
|
strTarget = strName.substring(0, nIndex) + strMid + strName.substring(nIndex + 4, strName.length);
|
2010-11-18 15:46:59 +08:00
|
|
|
}
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
return strTarget;
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
}
|
2010-11-18 10:39:59 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
function AddFilesToCustomProj(proj, strProjectName, strProjectPath, InfFile) {
|
2010-11-19 14:56:57 +08:00
|
|
|
// var FileSys = new ActiveXObject('Scripting.FileSystemObject');
|
|
|
|
// var log = FileSys.OpenTextFile("log.txt", 2, true);
|
2010-11-19 14:43:13 +08:00
|
|
|
|
2010-11-18 15:46:59 +08:00
|
|
|
try {
|
2010-11-19 14:56:57 +08:00
|
|
|
var strTemplatePath = wizard.FindSymbol('TEMPLATES_PATH');
|
|
|
|
|
|
|
|
var strName = '';
|
|
|
|
|
|
|
|
var strTextStream = InfFile.OpenAsTextStream(1, -2);
|
|
|
|
while (!strTextStream.AtEndOfStream)
|
|
|
|
{
|
|
|
|
strName = strTextStream.ReadLine();
|
|
|
|
|
|
|
|
if (!strName.length || strName == '') {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
// log.WriteLine(strName);
|
|
|
|
var strTarget = GetTargetName(strName, strProjectName);
|
|
|
|
var strTemplate = strTemplatePath + '\\' + strName;
|
|
|
|
var strFile = strProjectPath + '\\' + strTarget;
|
|
|
|
|
|
|
|
var bCopyOnly = false;
|
|
|
|
var strExt = strName.substr(strName.lastIndexOf("."));
|
2010-11-23 18:20:46 +08:00
|
|
|
if (strExt == ".ARM"
|
|
|
|
|| strExt == ".jpg"
|
|
|
|
|| strExt == ".png"
|
|
|
|
|| strExt == ".bmp"
|
|
|
|
|| strExt == ".ico"
|
|
|
|
|| strExt == ".gif"
|
|
|
|
|| strExt == ".rtf"
|
|
|
|
|| strExt == ".css") {
|
2010-11-19 14:56:57 +08:00
|
|
|
bCopyOnly = true;
|
|
|
|
}
|
|
|
|
wizard.RenderTemplate(strTemplate, strFile, bCopyOnly);
|
2010-11-18 15:46:59 +08:00
|
|
|
|
|
|
|
if (strExt == ".h") {
|
2010-12-03 15:27:55 +08:00
|
|
|
if (strName.indexOf("UnicodeScript.h") >= 0) {
|
2010-11-18 15:46:59 +08:00
|
|
|
unFile = proj.Object.AddFile(strFile);
|
2010-11-19 14:56:57 +08:00
|
|
|
var strPrjTG3DirWin = '..\\..\\PRJ_TG3\\';
|
|
|
|
var unFileCfg = unFile.FileConfigurations('Debug');
|
|
|
|
var strCommandLine = strPrjTG3DirWin + 'Common\\StrConv\\TzdStrConv_V1.exe $(InputPath) $(InputDir)$(InputName)_str.h';
|
|
|
|
var strAddDepend = strPrjTG3DirWin + 'Common\\StrConv\\TzdStrConv_V1.exe';
|
|
|
|
unFileCfg.Tool.CommandLine = strCommandLine;
|
|
|
|
unFileCfg.Tool.AdditionalDependencies = strAddDepend;
|
|
|
|
unFileCfg.Tool.Outputs = '$(InputDir)$(InputName)_str.h';
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
proj.Object.AddFile(strFile);
|
2010-11-18 15:46:59 +08:00
|
|
|
}
|
|
|
|
strTextStream.Close();
|
2010-11-19 14:56:57 +08:00
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
// log.Close();
|
2010-11-18 10:39:59 +08:00
|
|
|
}
|