Remove all hardcode string to En.rc

Hopplyfull all hardcoing string are gone now 


svn path=/trunk/; revision=14888
This commit is contained in:
Magnus Olsen 2005-04-30 19:00:46 +00:00
parent a14761769e
commit 671be67001
3 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,12 @@
#include "resource.h"
/* Start move all hard code string to En.rc
* By Magnus Olsen 2005
*/
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
{
STRING_USERINIT_FAIL, "Userinit failed to start the shell!\n"
}

View file

@ -24,6 +24,7 @@
* PROGRAMMERS: Thomas Weidenmueller (w3seek@users.sourceforge.net)
*/
#include <windows.h>
#include "resource.h"
/* GLOBALS ******************************************************************/
@ -77,6 +78,7 @@ void StartShell(void)
PROCESS_INFORMATION pi;
WCHAR Shell[MAX_PATH];
WCHAR ExpandedShell[MAX_PATH];
TCHAR szMsg[RC_STRING_MAX_SIZE];
GetShell(Shell);
@ -102,7 +104,10 @@ void StartShell(void)
CloseHandle(pi.hThread);
}
else
MessageBox(0, L"Userinit failed to start the shell!\n", NULL, 0);
{
LoadString( GetModuleHandle(NULL), STRING_USERINIT_FAIL, (LPTSTR) szMsg,sizeof(szMsg));
MessageBox(0, szMsg, NULL, 0);
}
}
static

View file

@ -1,6 +1,9 @@
/* $Id$ */
#include <windows.h>
#define REACTOS_STR_FILE_DESCRIPTION "Userinit Logon Application\0"
#define REACTOS_STR_INTERNAL_NAME "userinit\0"
#define REACTOS_STR_ORIGINAL_FILENAME "userinit.dll\0"
#include <reactos/version.rc>
#include "En.rc"