From d94ad58d974e11df440b5c156e1e467c665b4203 Mon Sep 17 00:00:00 2001 From: Don HO Date: Sat, 6 Apr 2019 18:00:43 +0200 Subject: [PATCH] Remove unnecessary sub-projects --- .../src/tools/ChangeIcon/ChangeIcon.cpp | 263 ------------- .../src/tools/ChangeIcon/ChangeIcon.vcproj | 188 ---------- PowerEditor/src/tools/IExplorerShell/makefile | 2 - .../IExplorerShell/nppIExplorerShell.cpp | 50 --- .../src/tools/xmlUpdater/configModel.xml | 6 - .../src/tools/xmlUpdater/langsModel.xml | 6 - PowerEditor/src/tools/xmlUpdater/makefile | 56 --- .../src/tools/xmlUpdater/stylers_remove.xml | 17 - .../src/tools/xmlUpdater/stylesModel.xml | 12 - .../src/tools/xmlUpdater/xmlUpdater.cpp | 346 ------------------ .../src/tools/xmlUpdater/xmlUpdater.vcproj | 224 ------------ 11 files changed, 1170 deletions(-) delete mode 100644 PowerEditor/src/tools/ChangeIcon/ChangeIcon.cpp delete mode 100644 PowerEditor/src/tools/ChangeIcon/ChangeIcon.vcproj delete mode 100644 PowerEditor/src/tools/IExplorerShell/makefile delete mode 100644 PowerEditor/src/tools/IExplorerShell/nppIExplorerShell.cpp delete mode 100644 PowerEditor/src/tools/xmlUpdater/configModel.xml delete mode 100644 PowerEditor/src/tools/xmlUpdater/langsModel.xml delete mode 100644 PowerEditor/src/tools/xmlUpdater/makefile delete mode 100644 PowerEditor/src/tools/xmlUpdater/stylers_remove.xml delete mode 100644 PowerEditor/src/tools/xmlUpdater/stylesModel.xml delete mode 100644 PowerEditor/src/tools/xmlUpdater/xmlUpdater.cpp delete mode 100644 PowerEditor/src/tools/xmlUpdater/xmlUpdater.vcproj diff --git a/PowerEditor/src/tools/ChangeIcon/ChangeIcon.cpp b/PowerEditor/src/tools/ChangeIcon/ChangeIcon.cpp deleted file mode 100644 index 2754bb2a5..000000000 --- a/PowerEditor/src/tools/ChangeIcon/ChangeIcon.cpp +++ /dev/null @@ -1,263 +0,0 @@ -// Replace an icon group in an executable by one from an ICO file -// By Francois-R.Boyer@PolyMtl.ca for Notepad++ -// 2010-11-20 -// -// This code is based on: Maria Nadejde, "Replacing ICON resources in EXE and DLL files", The Code Project, 13 Nov 2008 -// ( http://www.codeproject.com/KB/DLL/ICON_Resources.aspx ) -// original article and code is licenced under The GNU General Public License (GPLv3) -// -// -// this file is part of ChangeIcon -// Copyright (C)2010 Francois-R Boyer -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either -// version 2 of the License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - -#ifndef UNICODE -#define UNICODE -#endif - -#ifndef _UNICODE -#define _UNICODE -#endif - -#include -#include -#include -#include // for offsetof - -#ifdef _DEBUG -#define IFDEBUG(x) x -#else -#define IFDEBUG(x) -#endif - -BOOL getMaxIconId_EnumNamesFunc(HANDLE hModule, LPCTSTR lpType, LPTSTR lpName, WORD* lpMaxID) -{ - if(IS_INTRESOURCE(lpName) && (USHORT)lpName>*lpMaxID) - *lpMaxID=(USHORT)lpName; - return true; -} - -WORD getMaxIconId(TCHAR* lpFileName) -{ - WORD nMaxID = 0; - HINSTANCE hLib = LoadLibraryEx(lpFileName,NULL,DONT_RESOLVE_DLL_REFERENCES | LOAD_LIBRARY_AS_DATAFILE); - if(hLib == NULL) { _tprintf(_T("Unable to load library '%s'\n"), lpFileName); return 0xFFFF; } - // Enumerate icon "names" (IDs) to get next available ID - if(!EnumResourceNames(hLib, RT_ICON, (ENUMRESNAMEPROC)getMaxIconId_EnumNamesFunc,(LONG_PTR)&nMaxID)) { _tprintf(_T("Unable to enum icons\n")); return 0xFFFF; } - FreeLibrary(hLib); - IFDEBUG( _tprintf(_T("MaxIcon=%d\n"), nMaxID); ) - return nMaxID; -} - -class Icon { -public: - // Icon format from http://msdn.microsoft.com/en-us/library/ms997538.aspx - // for ICO and EXE files - struct ICONDIR { // File header: - WORD idReserved; // Reserved (must be 0) - WORD idType; // Resource Type (1 for icons) - WORD idCount; // How many images? - }; - struct ICONDIRENTRY { // One for each image: - BYTE bWidth; // Width, in piexels, of the image - BYTE bHeight; // Height, in pixels, of the image (times 2) - BYTE bColorCount; // Number of colors in image (0 if >=8bpp) - BYTE bReserved; // Reserved (must be 0) - WORD wPlanes; // Color Planes - WORD wBitCount; // Bits per pixel - DWORD dwBytesInRes; // How many bytes in this resource? - union { - DWORD dwImageOffset;// Where in the file is this image (in ICO file) - WORD nID; // the ID (in EXE file) - }; - }; - static const UINT sizeof_iconDirEntry_ICO = sizeof(ICONDIRENTRY); - static const UINT sizeof_iconDirEntry_EXE = offsetof(ICONDIRENTRY,nID)+sizeof(WORD); - - ICONDIR _head; - ICONDIRENTRY *_entries; - LPBYTE *_imagesData; - - Icon() : _entries(NULL), _imagesData(NULL) { _head.idCount = 0; } - void clear() { - if(_imagesData) { for(int i=0; i<_head.idCount; ++i) delete _imagesData[i]; delete[] _imagesData; _imagesData = 0; } - if(_entries) delete[] _entries; _entries = 0; - _head.idCount = 0; - } - ~Icon() { clear(); } - - bool readICO(TCHAR* filename); - bool readEXE(TCHAR* lpFileName, LPCTSTR lpResName, UINT resLangId); // Does not currently read image data - - bool writeToEXE(TCHAR* lpFileName, LPCTSTR lpResName, UINT resLangId); - - WORD count() { return _head.idCount; } -}; - -bool Icon::readICO(TCHAR* filename) -{ - clear(); - HANDLE hFile = CreateFile(filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); - if(hFile == INVALID_HANDLE_VALUE) { _tprintf(_T("Error opening file '%s' for Reading\n"), filename); return false; } - DWORD dwBytesRead; - // Read header - if(!ReadFile( hFile, &_head, sizeof(_head), &dwBytesRead, NULL )) { _tprintf(_T("Error reading file '%s'\n"), filename); return false; } - IFDEBUG( _tprintf(_T("%d icon entries\n"), count()); ) - // Read entries - _entries = new ICONDIRENTRY[count()]; - if(!ReadFile( hFile, _entries, sizeof(*_entries)*count(), &dwBytesRead, NULL )) { _tprintf(_T("Error reading file '%s'\n"), filename); return false; } - // Read images - _imagesData=new LPBYTE[count()]; memset(_imagesData, 0, sizeof(LPBYTE)*count()); - for(int i=0; i - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/PowerEditor/src/tools/IExplorerShell/makefile b/PowerEditor/src/tools/IExplorerShell/makefile deleted file mode 100644 index 109e4a776..000000000 --- a/PowerEditor/src/tools/IExplorerShell/makefile +++ /dev/null @@ -1,2 +0,0 @@ -ALL: - gcc nppIExplorerShell.cpp -o nppIExplorerShell.exe -mwindows -lshlwapi -Os -s \ No newline at end of file diff --git a/PowerEditor/src/tools/IExplorerShell/nppIExplorerShell.cpp b/PowerEditor/src/tools/IExplorerShell/nppIExplorerShell.cpp deleted file mode 100644 index 5007b1b1b..000000000 --- a/PowerEditor/src/tools/IExplorerShell/nppIExplorerShell.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// This file is part of Notepad++ project -// Copyright (C)2003 Don HO -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either -// version 2 of the License, or (at your option) any later version. -// -// Note that the GPL places important restrictions on "derived works", yet -// it does not provide a detailed definition of that term. To avoid -// misunderstandings, we consider an application to constitute a -// "derivative work" for the purpose of this license if it does any of the -// following: -// 1. Integrates source code from Notepad++. -// 2. Integrates/includes/aggregates Notepad++ into a proprietary executable -// installer, such as those produced by InstallShield. -// 3. Links to a library or executes a program that does any of the above. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -#include -#include - -const int CMD_LEN = 512; -const int PARAM_LEN = 1024; -const char *NPP = "\\notepad++.exe"; -const char *FLAG_LEXER_HTML = "-lhtml "; - -int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpszCmdLine, int nCmdShow) -{ - char cmd[CMD_LEN]; - ::GetModuleFileName(NULL, cmd, CMD_LEN); - PathRemoveFileSpec(cmd); - strcat(cmd, NPP); - - char param[PARAM_LEN] = ""; - - strcat(strcat(param, FLAG_LEXER_HTML), lpszCmdLine); - ::MessageBox(NULL, param, "", MB_OK); - HINSTANCE hInst = ::ShellExecute(NULL, "open", cmd, param, ".", SW_SHOW); - return (UINT)0; -} - diff --git a/PowerEditor/src/tools/xmlUpdater/configModel.xml b/PowerEditor/src/tools/xmlUpdater/configModel.xml deleted file mode 100644 index bcef6f659..000000000 --- a/PowerEditor/src/tools/xmlUpdater/configModel.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/PowerEditor/src/tools/xmlUpdater/langsModel.xml b/PowerEditor/src/tools/xmlUpdater/langsModel.xml deleted file mode 100644 index ba690cfaf..000000000 --- a/PowerEditor/src/tools/xmlUpdater/langsModel.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/PowerEditor/src/tools/xmlUpdater/makefile b/PowerEditor/src/tools/xmlUpdater/makefile deleted file mode 100644 index 19af67588..000000000 --- a/PowerEditor/src/tools/xmlUpdater/makefile +++ /dev/null @@ -1,56 +0,0 @@ -# this file is part of notepad++ -# Copyright (C)2003 Don HO ( donho@altern.org ) -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -.SUFFIXES: .cpp -CPP = g++ -CFLAGS = -Wall -Os -DNDEBUG - -MAINOBJS = xmlUpdater.o -TINYXMLOBJS = tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o - -TINYXMLDIR = ../../TinyXml - -OBJS = $(MAINOBJS) $(TINYXMLOBJS) - -PROG = xmlUpdater.exe - -INCLUDEDIR = $(TINYXMLDIR) -INCLUDEFLAGS = -I$(INCLUDEDIR) -LDFLAGS = -#-mwindows -lshlwapi -Os -s - -ALL : $(PROG) - - -$(PROG) : $(OBJS) - $(CPP) -o $@ $(OBJS) $(LDFLAGS) - -xmlUpdater.o : $(INCLUDEDIR)/tinyxml.h - $(CPP) -c xmlUpdater.cpp -o $@ $(INCLUDEFLAGS) - -tinystr.o: $(TINYXMLDIR)/tinystr.h $(TINYXMLDIR)/tinyxml.h - $(CPP) $(CFLAGS) -c $(TINYXMLDIR)/tinystr.cpp -o $@ $(INCLUDEFLAGS) - -tinyxml.o: $(TINYXMLDIR)/tinyxml.h - $(CPP) $(CFLAGS) -c $(TINYXMLDIR)/tinyxml.cpp -o $@ $(INCLUDEFLAGS) - -tinyxmlerror.o: $(TINYXMLDIR)/tinyxml.h - $(CPP) $(CFLAGS) -c $(TINYXMLDIR)/tinyxmlerror.cpp -o $@ $(INCLUDEFLAGS) - -tinyxmlparser.o: $(TINYXMLDIR)/tinyxml.h - $(CPP) $(CFLAGS) -c $(TINYXMLDIR)/tinyxmlparser.cpp -o $@ $(INCLUDEFLAGS) - diff --git a/PowerEditor/src/tools/xmlUpdater/stylers_remove.xml b/PowerEditor/src/tools/xmlUpdater/stylers_remove.xml deleted file mode 100644 index 041502caf..000000000 --- a/PowerEditor/src/tools/xmlUpdater/stylers_remove.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/PowerEditor/src/tools/xmlUpdater/stylesModel.xml b/PowerEditor/src/tools/xmlUpdater/stylesModel.xml deleted file mode 100644 index 16bf01a09..000000000 --- a/PowerEditor/src/tools/xmlUpdater/stylesModel.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/PowerEditor/src/tools/xmlUpdater/xmlUpdater.cpp b/PowerEditor/src/tools/xmlUpdater/xmlUpdater.cpp deleted file mode 100644 index 052776334..000000000 --- a/PowerEditor/src/tools/xmlUpdater/xmlUpdater.cpp +++ /dev/null @@ -1,346 +0,0 @@ -// This file is part of Notepad++ project -// Copyright (C)2003 Don HO -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either -// version 2 of the License, or (at your option) any later version. -// -// Note that the GPL places important restrictions on "derived works", yet -// it does not provide a detailed definition of that term. To avoid -// misunderstandings, we consider an application to constitute a -// "derivative work" for the purpose of this license if it does any of the -// following: -// 1. Integrates source code from Notepad++. -// 2. Integrates/includes/aggregates Notepad++ into a proprietary executable -// installer, such as those produced by InstallShield. -// 3. Links to a library or executes a program that does any of the above. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - -#include -#include "tinyxml.h" -#define MODEL_INVALID 1 -#define SRC_INVALID 2 -#define DEST_INVALID 3 - -static bool isInList(const char *token2Find, char *list2Clean) { - char word[1024]; - bool isFileNamePart = false; - - for (int i = 0, j = 0 ; i <= int(strlen(list2Clean)) ; i++) - { - if ((list2Clean[i] == ' ') || (list2Clean[i] == '\0')) - { - if ((j) && (!isFileNamePart)) - { - word[j] = '\0'; - j = 0; - bool bingo = !strcmp(token2Find, word); - - if (bingo) - { - int wordLen = int(strlen(word)); - int prevPos = i - wordLen; - - for (i = i + 1 ; i <= int(strlen(list2Clean)) ; i++, prevPos++) - list2Clean[prevPos] = list2Clean[i]; - - list2Clean[prevPos] = '\0'; - - return true; - } - } - } - else if (list2Clean[i] == '"') - { - isFileNamePart = !isFileNamePart; - } - else - { - word[j++] = list2Clean[i]; - } - } - return false; -}; - - -void update(TiXmlNode *modelNode, TiXmlNode *srcNode, TiXmlNode *destNode) { - TiXmlNode *srcChildNode = NULL; - TiXmlNode *destChildNode = NULL; - TiXmlNode *modelChildNode = modelNode->FirstChild("Node"); - - if (!srcNode) return; - - for (modelChildNode = modelNode->FirstChild("Node"); - modelChildNode; - modelChildNode = modelChildNode->NextSibling("Node")) - { - const char *nodeName = (modelChildNode->ToElement())->Attribute("nodeName"); - const char *name = (modelChildNode->ToElement())->Attribute("name"); - if (nodeName) - { - srcChildNode = srcNode->FirstChild(nodeName); - if (!srcChildNode) continue; - - destChildNode = destNode->FirstChild(nodeName); - if (!destChildNode) - { - //Insertion - destNode->InsertEndChild(*srcChildNode); - continue; - } - if (name && name[0]) - { - srcChildNode = srcNode->FirstChild(nodeName); - while (srcChildNode) - { - const char *attrib = (srcChildNode->ToElement())->Attribute(name); - if (attrib) - { - const char *action = (srcChildNode->ToElement())->Attribute("action"); - bool remove = false; - bool found = false; - - if (action && !strcmp(action, "remove")) - remove = true; - - destChildNode = destNode->FirstChild(nodeName); - while (destChildNode) - { - const char *attribDest = (destChildNode->ToElement())->Attribute(name); - if ((attribDest) && (!strcmp(attrib, attribDest))) - { - found = true; - break; - } - destChildNode = destChildNode->NextSibling(nodeName); - } - if (remove) - { - if (found) destNode->RemoveChild(destChildNode); - } - else - { - if (found) - update(modelChildNode, srcChildNode, destChildNode); - else - destNode->InsertEndChild(*srcChildNode); - } - } - srcChildNode = srcChildNode->NextSibling(nodeName); - } // while srcChildNode - } - } - update(modelChildNode, srcChildNode, destChildNode); - } -}; - - -int main(int argc, char *argv[]) -{ - if (argc != 4) - { - printf("Syntax : xmlUpdater model.xml src.xml dest.xml"); - return -1; - } - - char *xmlModelPath = argv[1]; - char *xmlSrcPath = argv[2]; - char *xmlDestPath = argv[3]; - - //printf("%s\n", xmlModelPath); - //printf("%s\n", xmlSrcPath); - //printf("%s\n", xmlDestPath); - - TiXmlDocument *pXmlModel = NULL; - TiXmlDocument *pXmlSrc = NULL; - TiXmlDocument *pXmlDest = NULL; - - try { - pXmlModel = new TiXmlDocument(xmlModelPath); - bool loadOkay = pXmlModel->LoadFile(); - if (!loadOkay) throw int(MODEL_INVALID); - - pXmlSrc = new TiXmlDocument(xmlSrcPath); - loadOkay = pXmlSrc->LoadFile(); - if (!loadOkay) throw int(SRC_INVALID); - - pXmlDest = new TiXmlDocument(xmlDestPath); - loadOkay = pXmlDest->LoadFile(); - if (!loadOkay) throw int(DEST_INVALID); - - TiXmlNode *root = pXmlModel->FirstChild("Node"); - const char *nodeRootName = (root->ToElement())->Attribute("nodeName"); - if (nodeRootName) - { - TiXmlNode *srcRoot = pXmlSrc->FirstChild(nodeRootName); - if (!srcRoot) throw int(4); - TiXmlNode *destRoot = pXmlDest->FirstChild(nodeRootName); - if (!destRoot) - { - throw int(DEST_INVALID); - } - else - { - update(root, srcRoot, destRoot); - } - } - } catch (int errMsg) { - char *msg; - if (errMsg == MODEL_INVALID) - msg = "Model file is invalidated"; - if (errMsg == SRC_INVALID) - msg = "Source file is invalidated"; - if (errMsg == DEST_INVALID) - msg = "File to update is invalidated"; - - if (pXmlModel) delete pXmlModel; - if (pXmlSrc) delete pXmlSrc; - if (pXmlDest) delete pXmlDest; - - printf(msg); - return -1; - } - - pXmlDest->SaveFile(); - - delete pXmlModel; - delete pXmlSrc; - delete pXmlDest; - printf("Update successful"); - - return 0; -} - -/* -const char FLAG_SILENT[] = "-silent"; - -int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpszCmdLine, int nCmdShow) -//int main(int argc, char *argv[]) -{ - bool isSilentMode = isInList(FLAG_SILENT, lpszCmdLine); - - int argc=0; - LPSTR argv[10]; - LPSTR p, q; - - argv[argc] = "xmlUpdater.exe"; - // Parse command line handling quotes. - p = lpszCmdLine; - while (*p) - { - // for each argument - while ((*p) && (*p == ' ')) - p++; // skip over leading spaces - if (*p == '\042') - { - p++; // skip " - q = p; - // scan to end of argument - // doesn't handle embedded quotes - while ((*p) && (*p != '\042')) - p++; - argv[++argc] = q; - if (*p) - *p++ = '\0'; - } - else if (*p) - { - // delimited by spaces - q = p; - while ((*p) && (*p != ' ')) - p++; - argv[++argc] = q; - if (*p) - *p++ = '\0'; - } - } - argv[++argc] = (LPSTR)NULL; - - if (argc < 4) - { - //printf(); - if (!isSilentMode) - MessageBox(NULL, "xmlUpdater model.xml src.xml dest.xml", "Syntax", MB_OK); - return -1; - } - - char *xmlModelPath = argv[1]; - char *xmlSrcPath = argv[2]; - char *xmlDestPath = argv[3]; - - //printf("%s\n", xmlModelPath); - //printf("%s\n", xmlSrcPath); - //printf("%s\n", xmlDestPath); - - TiXmlDocument *pXmlModel = NULL; - TiXmlDocument *pXmlSrc = NULL; - TiXmlDocument *pXmlDest = NULL; - - try { - pXmlModel = new TiXmlDocument(xmlModelPath); - bool loadOkay = pXmlModel->LoadFile(); - if (!loadOkay) throw int(MODEL_INVALID); - - pXmlSrc = new TiXmlDocument(xmlSrcPath); - loadOkay = pXmlSrc->LoadFile(); - if (!loadOkay) throw int(SRC_INVALID); - - pXmlDest = new TiXmlDocument(xmlDestPath); - loadOkay = pXmlDest->LoadFile(); - if (!loadOkay) throw int(DEST_INVALID); - - TiXmlNode *root = pXmlModel->FirstChild("Node"); - const char *nodeRootName = (root->ToElement())->Attribute("nodeName"); - if (nodeRootName) - { - TiXmlNode *srcRoot = pXmlSrc->FirstChild(nodeRootName); - if (!srcRoot) throw int(4); - TiXmlNode *destRoot = pXmlDest->FirstChild(nodeRootName); - if (!destRoot) - { - throw int(DEST_INVALID); - } - else - { - update(root, srcRoot, destRoot); - } - } - } catch (int errMsg) { - char *msg; - if (errMsg == MODEL_INVALID) - msg = "Model file is invalidated"; - if (errMsg == SRC_INVALID) - msg = "Source file is invalidated"; - if (errMsg == DEST_INVALID) - msg = "File to update is invalidated"; - - if (pXmlModel) delete pXmlModel; - if (pXmlSrc) delete pXmlSrc; - if (pXmlDest) delete pXmlDest; - - if (!isSilentMode) - MessageBox(NULL, msg, "Update Failure", MB_OK); - return -1; - } - - pXmlDest->SaveFile(); - - delete pXmlModel; - delete pXmlSrc; - delete pXmlDest; - if (!isSilentMode) - MessageBox(NULL, "Update successful", "Update status", MB_OK); - - return 0; -} -*/ diff --git a/PowerEditor/src/tools/xmlUpdater/xmlUpdater.vcproj b/PowerEditor/src/tools/xmlUpdater/xmlUpdater.vcproj deleted file mode 100644 index ad38fa487..000000000 --- a/PowerEditor/src/tools/xmlUpdater/xmlUpdater.vcproj +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -