From: Robert K. <may...@us...> - 2001-07-24 00:58:07
|
Update of /cvsroot/bitcollider/bitcollider/bcshellext In directory usw-pr-cvs1:/tmp/cvs-serv9270/bcshellext Modified Files: ShellExt.cpp bcshellext.dsp bcshellext_p.c Log Message: Fixed the incorrect progress indicator bug, added better support for bitcolliding many files via the shell extension and updated the build number. Index: ShellExt.cpp =================================================================== RCS file: /cvsroot/bitcollider/bitcollider/bcshellext/ShellExt.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** ShellExt.cpp 2001/04/06 04:39:05 1.9 --- ShellExt.cpp 2001/07/24 00:58:03 1.10 *************** *** 5,8 **** --- 5,10 ---- #include "ShellExt.h" + #define MAX_CMD_LINE_LEN 2000 + ///////////////////////////////////////////////////////////////////////////// // CShellExt *************** *** 184,187 **** --- 186,207 ---- argList += string("\"") + (*i) + string("\" "); } + if (argList.length() > MAX_CMD_LINE_LEN) + { + char tempPath[MAX_PATH], tempFile[MAX_PATH]; + FILE *temp; + + GetTempPath(MAX_PATH, tempPath); + GetTempFileName(tempPath, "bp", GetTickCount(), tempFile); + + temp = fopen(tempFile, "w"); + if (temp != NULL) + { + for(i = oFileList.begin(); i != oFileList.end(); i++) + fprintf(temp, "%s\n", (*i).c_str()); + + fclose(temp); + argList = string("@") + string(tempFile); + } + } ret = (int)ShellExecute(NULL, "open", exe, argList.c_str(), path, SW_SHOW); Index: bcshellext.dsp =================================================================== RCS file: /cvsroot/bitcollider/bitcollider/bcshellext/bcshellext.dsp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** bcshellext.dsp 2001/04/03 23:53:48 1.4 --- bcshellext.dsp 2001/07/24 00:58:04 1.5 *************** *** 306,310 **** # Begin Source File ! SOURCE=..\bc_dll.lib # End Source File # End Group --- 306,310 ---- # Begin Source File ! SOURCE=..\bitcoll.lib # End Source File # End Group Index: bcshellext_p.c =================================================================== RCS file: /cvsroot/bitcollider/bitcollider/bcshellext/bcshellext_p.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** bcshellext_p.c 2001/07/23 23:13:32 1.9 --- bcshellext_p.c 2001/07/24 00:58:04 1.10 *************** *** 3,7 **** /* File created by MIDL compiler version 5.01.0164 */ ! /* at Thu Jul 12 13:52:37 2001 */ /* Compiler settings for D:\bitzi\bitcollider\bcshellext\bcshellext.idl: --- 3,7 ---- /* File created by MIDL compiler version 5.01.0164 */ ! /* at Mon Jul 23 17:07:33 2001 */ /* Compiler settings for D:\bitzi\bitcollider\bcshellext\bcshellext.idl: |