[NEW_FEATURE] Preparing Updater.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@70 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
donho 2007-11-10 14:05:57 +00:00
parent 80df519dbc
commit a501b3f659
2 changed files with 9 additions and 5 deletions

View File

@ -169,7 +169,7 @@ void systemMessage(const char *title)
void printInt(int int2print) void printInt(int int2print)
{ {
char str[32]; char str[32];
itoa(int2print, str, 10); sprintf(str, "%d", int2print);
::MessageBox(NULL, str, "", MB_OK); ::MessageBox(NULL, str, "", MB_OK);
} }

View File

@ -269,10 +269,14 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpszCmdLine, int nCmdSh
if (TheFirstOne) if (TheFirstOne)
{ {
/* char updaterPath[MAX_PATH];
Process updater("C:\\Program Files\\7-Zip\\7zFM.exe", "c:\\"); strcpy(updaterPath, pNppParameters->getNppPath());
strcat(updaterPath, "\\updater\\gup.exe");
if (::PathFileExists(updaterPath))
{
Process updater(updaterPath, "c:\\");
updater.run(); updater.run();
*/ }
} }
MSG msg; MSG msg;
msg.wParam = 0; msg.wParam = 0;