Bin\\MakeLangId.exe source code
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3629 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d855dafe58
commit
b58a609b69
5 changed files with 527 additions and 0 deletions
241
Contrib/MakeLangId/MakeLangId.cpp
Normal file
241
Contrib/MakeLangId/MakeLangId.cpp
Normal file
|
@ -0,0 +1,241 @@
|
||||||
|
#include <windows.h>
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
|
#define CBL(x) {x,#x}
|
||||||
|
|
||||||
|
struct line {
|
||||||
|
unsigned short id;
|
||||||
|
char *name;
|
||||||
|
};
|
||||||
|
|
||||||
|
line primary[] = {
|
||||||
|
CBL(LANG_NEUTRAL),
|
||||||
|
CBL(LANG_INVARIANT),
|
||||||
|
CBL(LANG_AFRIKAANS),
|
||||||
|
CBL(LANG_ALBANIAN),
|
||||||
|
CBL(LANG_ARABIC),
|
||||||
|
CBL(LANG_ARMENIAN),
|
||||||
|
CBL(LANG_ASSAMESE),
|
||||||
|
CBL(LANG_AZERI),
|
||||||
|
CBL(LANG_BASQUE),
|
||||||
|
CBL(LANG_BELARUSIAN),
|
||||||
|
CBL(LANG_BENGALI),
|
||||||
|
CBL(LANG_BULGARIAN),
|
||||||
|
CBL(LANG_CATALAN),
|
||||||
|
CBL(LANG_CHINESE),
|
||||||
|
CBL(LANG_CROATIAN),
|
||||||
|
CBL(LANG_CZECH),
|
||||||
|
CBL(LANG_DANISH),
|
||||||
|
CBL(LANG_DIVEHI),
|
||||||
|
CBL(LANG_DUTCH),
|
||||||
|
CBL(LANG_ENGLISH),
|
||||||
|
CBL(LANG_ESTONIAN),
|
||||||
|
CBL(LANG_FAEROESE),
|
||||||
|
CBL(LANG_FARSI),
|
||||||
|
CBL(LANG_FINNISH),
|
||||||
|
CBL(LANG_FRENCH),
|
||||||
|
CBL(LANG_GALICIAN),
|
||||||
|
CBL(LANG_GEORGIAN),
|
||||||
|
CBL(LANG_GERMAN),
|
||||||
|
CBL(LANG_GREEK),
|
||||||
|
CBL(LANG_GUJARATI),
|
||||||
|
CBL(LANG_HEBREW),
|
||||||
|
CBL(LANG_HINDI),
|
||||||
|
CBL(LANG_HUNGARIAN),
|
||||||
|
CBL(LANG_ICELANDIC),
|
||||||
|
CBL(LANG_INDONESIAN),
|
||||||
|
CBL(LANG_ITALIAN),
|
||||||
|
CBL(LANG_JAPANESE),
|
||||||
|
CBL(LANG_KANNADA),
|
||||||
|
CBL(LANG_KASHMIRI),
|
||||||
|
CBL(LANG_KAZAK),
|
||||||
|
CBL(LANG_KONKANI),
|
||||||
|
CBL(LANG_KOREAN),
|
||||||
|
CBL(LANG_KYRGYZ),
|
||||||
|
CBL(LANG_LATVIAN),
|
||||||
|
CBL(LANG_LITHUANIAN),
|
||||||
|
CBL(LANG_MACEDONIAN),
|
||||||
|
CBL(LANG_MALAY),
|
||||||
|
CBL(LANG_MALAYALAM),
|
||||||
|
CBL(LANG_MANIPURI),
|
||||||
|
CBL(LANG_MARATHI),
|
||||||
|
CBL(LANG_MONGOLIAN),
|
||||||
|
CBL(LANG_NEPALI),
|
||||||
|
CBL(LANG_NORWEGIAN),
|
||||||
|
CBL(LANG_ORIYA),
|
||||||
|
CBL(LANG_POLISH),
|
||||||
|
CBL(LANG_PORTUGUESE),
|
||||||
|
CBL(LANG_PUNJABI),
|
||||||
|
CBL(LANG_ROMANIAN),
|
||||||
|
CBL(LANG_RUSSIAN),
|
||||||
|
CBL(LANG_SANSKRIT),
|
||||||
|
CBL(LANG_SERBIAN),
|
||||||
|
CBL(LANG_SINDHI),
|
||||||
|
CBL(LANG_SLOVAK),
|
||||||
|
CBL(LANG_SLOVENIAN),
|
||||||
|
CBL(LANG_SPANISH),
|
||||||
|
CBL(LANG_SWAHILI),
|
||||||
|
CBL(LANG_SWEDISH),
|
||||||
|
CBL(LANG_SYRIAC),
|
||||||
|
CBL(LANG_TAMIL),
|
||||||
|
CBL(LANG_TATAR),
|
||||||
|
CBL(LANG_TELUGU),
|
||||||
|
CBL(LANG_THAI),
|
||||||
|
CBL(LANG_TURKISH),
|
||||||
|
CBL(LANG_UKRAINIAN),
|
||||||
|
CBL(LANG_URDU),
|
||||||
|
CBL(LANG_UZBEK),
|
||||||
|
CBL(LANG_VIETNAMESE)
|
||||||
|
};
|
||||||
|
|
||||||
|
line sub[] = {
|
||||||
|
CBL(SUBLANG_NEUTRAL),
|
||||||
|
CBL(SUBLANG_DEFAULT),
|
||||||
|
CBL(SUBLANG_SYS_DEFAULT),
|
||||||
|
CBL(SUBLANG_ARABIC_SAUDI_ARABIA),
|
||||||
|
CBL(SUBLANG_ARABIC_IRAQ),
|
||||||
|
CBL(SUBLANG_ARABIC_EGYPT),
|
||||||
|
CBL(SUBLANG_ARABIC_LIBYA),
|
||||||
|
CBL(SUBLANG_ARABIC_ALGERIA),
|
||||||
|
CBL(SUBLANG_ARABIC_MOROCCO),
|
||||||
|
CBL(SUBLANG_ARABIC_TUNISIA),
|
||||||
|
CBL(SUBLANG_ARABIC_OMAN),
|
||||||
|
CBL(SUBLANG_ARABIC_YEMEN),
|
||||||
|
CBL(SUBLANG_ARABIC_SYRIA),
|
||||||
|
CBL(SUBLANG_ARABIC_JORDAN),
|
||||||
|
CBL(SUBLANG_ARABIC_LEBANON),
|
||||||
|
CBL(SUBLANG_ARABIC_KUWAIT),
|
||||||
|
CBL(SUBLANG_ARABIC_UAE),
|
||||||
|
CBL(SUBLANG_ARABIC_BAHRAIN),
|
||||||
|
CBL(SUBLANG_ARABIC_QATAR),
|
||||||
|
CBL(SUBLANG_AZERI_LATIN),
|
||||||
|
CBL(SUBLANG_AZERI_CYRILLIC),
|
||||||
|
CBL(SUBLANG_CHINESE_TRADITIONAL),
|
||||||
|
CBL(SUBLANG_CHINESE_SIMPLIFIED),
|
||||||
|
CBL(SUBLANG_CHINESE_HONGKONG),
|
||||||
|
CBL(SUBLANG_CHINESE_SINGAPORE),
|
||||||
|
CBL(SUBLANG_CHINESE_MACAU),
|
||||||
|
CBL(SUBLANG_DUTCH),
|
||||||
|
CBL(SUBLANG_DUTCH_BELGIAN),
|
||||||
|
CBL(SUBLANG_ENGLISH_US),
|
||||||
|
CBL(SUBLANG_ENGLISH_UK),
|
||||||
|
CBL(SUBLANG_ENGLISH_AUS),
|
||||||
|
CBL(SUBLANG_ENGLISH_CAN),
|
||||||
|
CBL(SUBLANG_ENGLISH_NZ),
|
||||||
|
CBL(SUBLANG_ENGLISH_EIRE),
|
||||||
|
CBL(SUBLANG_ENGLISH_SOUTH_AFRICA),
|
||||||
|
CBL(SUBLANG_ENGLISH_JAMAICA),
|
||||||
|
CBL(SUBLANG_ENGLISH_CARIBBEAN),
|
||||||
|
CBL(SUBLANG_ENGLISH_BELIZE),
|
||||||
|
CBL(SUBLANG_ENGLISH_TRINIDAD),
|
||||||
|
CBL(SUBLANG_ENGLISH_ZIMBABWE),
|
||||||
|
CBL(SUBLANG_ENGLISH_PHILIPPINES),
|
||||||
|
CBL(SUBLANG_FRENCH),
|
||||||
|
CBL(SUBLANG_FRENCH_BELGIAN),
|
||||||
|
CBL(SUBLANG_FRENCH_CANADIAN),
|
||||||
|
CBL(SUBLANG_FRENCH_SWISS),
|
||||||
|
CBL(SUBLANG_FRENCH_LUXEMBOURG),
|
||||||
|
CBL(SUBLANG_FRENCH_MONACO),
|
||||||
|
CBL(SUBLANG_GERMAN),
|
||||||
|
CBL(SUBLANG_GERMAN_SWISS),
|
||||||
|
CBL(SUBLANG_GERMAN_AUSTRIAN),
|
||||||
|
CBL(SUBLANG_GERMAN_LUXEMBOURG),
|
||||||
|
CBL(SUBLANG_GERMAN_LIECHTENSTEIN),
|
||||||
|
CBL(SUBLANG_ITALIAN),
|
||||||
|
CBL(SUBLANG_ITALIAN_SWISS),
|
||||||
|
CBL(SUBLANG_KASHMIRI_INDIA),
|
||||||
|
CBL(SUBLANG_KOREAN),
|
||||||
|
CBL(SUBLANG_LITHUANIAN),
|
||||||
|
CBL(SUBLANG_MALAY_MALAYSIA),
|
||||||
|
CBL(SUBLANG_MALAY_BRUNEI_DARUSSALAM),
|
||||||
|
CBL(SUBLANG_NEPALI_INDIA),
|
||||||
|
CBL(SUBLANG_NORWEGIAN_BOKMAL),
|
||||||
|
CBL(SUBLANG_NORWEGIAN_NYNORSK),
|
||||||
|
CBL(SUBLANG_PORTUGUESE),
|
||||||
|
CBL(SUBLANG_PORTUGUESE_BRAZILIAN),
|
||||||
|
CBL(SUBLANG_SERBIAN_LATIN),
|
||||||
|
CBL(SUBLANG_SERBIAN_CYRILLIC),
|
||||||
|
CBL(SUBLANG_SPANISH),
|
||||||
|
CBL(SUBLANG_SPANISH_MEXICAN),
|
||||||
|
CBL(SUBLANG_SPANISH_MODERN),
|
||||||
|
CBL(SUBLANG_SPANISH_GUATEMALA),
|
||||||
|
CBL(SUBLANG_SPANISH_COSTA_RICA),
|
||||||
|
CBL(SUBLANG_SPANISH_PANAMA),
|
||||||
|
CBL(SUBLANG_SPANISH_DOMINICAN_REPUBLIC),
|
||||||
|
CBL(SUBLANG_SPANISH_VENEZUELA),
|
||||||
|
CBL(SUBLANG_SPANISH_COLOMBIA),
|
||||||
|
CBL(SUBLANG_SPANISH_PERU),
|
||||||
|
CBL(SUBLANG_SPANISH_ARGENTINA),
|
||||||
|
CBL(SUBLANG_SPANISH_ECUADOR),
|
||||||
|
CBL(SUBLANG_SPANISH_CHILE),
|
||||||
|
CBL(SUBLANG_SPANISH_URUGUAY),
|
||||||
|
CBL(SUBLANG_SPANISH_PARAGUAY),
|
||||||
|
CBL(SUBLANG_SPANISH_BOLIVIA),
|
||||||
|
CBL(SUBLANG_SPANISH_EL_SALVADOR),
|
||||||
|
CBL(SUBLANG_SPANISH_HONDURAS),
|
||||||
|
CBL(SUBLANG_SPANISH_NICARAGUA),
|
||||||
|
CBL(SUBLANG_SPANISH_PUERTO_RICO),
|
||||||
|
CBL(SUBLANG_SWEDISH),
|
||||||
|
CBL(SUBLANG_SWEDISH_FINLAND),
|
||||||
|
CBL(SUBLANG_URDU_PAKISTAN),
|
||||||
|
CBL(SUBLANG_URDU_INDIA),
|
||||||
|
CBL(SUBLANG_UZBEK_LATIN),
|
||||||
|
CBL(SUBLANG_UZBEK_CYRILLIC)
|
||||||
|
};
|
||||||
|
|
||||||
|
BOOL CALLBACK DialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam) {
|
||||||
|
int i;
|
||||||
|
switch (uMsg) {
|
||||||
|
case WM_INITDIALOG:
|
||||||
|
SendMessage(hwndDlg, WM_SETICON, 0, 0);
|
||||||
|
for (i = 0; i < sizeof(primary)/sizeof(line); i++)
|
||||||
|
SendDlgItemMessage(hwndDlg, IDC_PRIMARY, CB_ADDSTRING, 0, (LPARAM)primary[i].name);
|
||||||
|
for (i = 0; i < sizeof(sub)/sizeof(line); i++)
|
||||||
|
SendDlgItemMessage(hwndDlg, IDC_SUB, CB_ADDSTRING, 0, (LPARAM)sub[i].name);
|
||||||
|
break;
|
||||||
|
case WM_COMMAND:
|
||||||
|
if (LOWORD(wParam) == IDCANCEL) {
|
||||||
|
EndDialog(hwndDlg, 0);
|
||||||
|
PostQuitMessage(0);
|
||||||
|
}
|
||||||
|
else if (HIWORD(wParam) == CBN_SELCHANGE) {
|
||||||
|
if (SendDlgItemMessage(hwndDlg, IDC_PRIMARY, CB_GETCURSEL, 0, 0) != CB_ERR && SendDlgItemMessage(hwndDlg, IDC_SUB, CB_GETCURSEL, 0, 0) != CB_ERR) {
|
||||||
|
char lang[512];
|
||||||
|
wsprintf(lang, "Language ID: %d", MAKELANGID(primary[SendDlgItemMessage(hwndDlg, IDC_PRIMARY, CB_GETCURSEL, 0, 0)].id, sub[SendDlgItemMessage(hwndDlg, IDC_SUB, CB_GETCURSEL, 0, 0)].id));
|
||||||
|
SetDlgItemText(hwndDlg, IDC_RESULT, lang);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (LOWORD(wParam) == IDOK) {
|
||||||
|
if (SendDlgItemMessage(hwndDlg, IDC_PRIMARY, CB_GETCURSEL, 0, 0) != CB_ERR && SendDlgItemMessage(hwndDlg, IDC_SUB, CB_GETCURSEL, 0, 0) != CB_ERR) {
|
||||||
|
HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, 16);
|
||||||
|
if (!hMem) return 0;
|
||||||
|
char *lang_id = (char *)GlobalLock(hMem);
|
||||||
|
wsprintf(lang_id, "%u", MAKELANGID(primary[SendDlgItemMessage(hwndDlg, IDC_PRIMARY, CB_GETCURSEL, 0, 0)].id, sub[SendDlgItemMessage(hwndDlg, IDC_SUB, CB_GETCURSEL, 0, 0)].id));
|
||||||
|
GlobalUnlock(hMem);
|
||||||
|
if (!OpenClipboard(hwndDlg)) return 0;
|
||||||
|
EmptyClipboard();
|
||||||
|
SetClipboardData(CF_TEXT,hMem);
|
||||||
|
CloseClipboard();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int APIENTRY WinMain(HINSTANCE hInstance,
|
||||||
|
HINSTANCE hPrevInstance,
|
||||||
|
LPSTR lpCmdLine,
|
||||||
|
int nCmdShow)
|
||||||
|
{
|
||||||
|
DialogBox(
|
||||||
|
GetModuleHandle(0),
|
||||||
|
MAKEINTRESOURCE(IDD_DIALOG),
|
||||||
|
0,
|
||||||
|
DialogProc
|
||||||
|
);
|
||||||
|
|
||||||
|
ExitProcess(0);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
123
Contrib/MakeLangId/MakeLangId.dsp
Normal file
123
Contrib/MakeLangId/MakeLangId.dsp
Normal file
|
@ -0,0 +1,123 @@
|
||||||
|
# Microsoft Developer Studio Project File - Name="MakeLangId" - Package Owner=<4>
|
||||||
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||||
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
|
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||||
|
|
||||||
|
CFG=MakeLangId - Win32 Debug
|
||||||
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
|
!MESSAGE use the Export Makefile command and run
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "MakeLangId.mak".
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "MakeLangId.mak" CFG="MakeLangId - Win32 Debug"
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE Possible choices for configuration are:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE "MakeLangId - Win32 Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "MakeLangId - Win32 Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE
|
||||||
|
|
||||||
|
# Begin Project
|
||||||
|
# PROP AllowPerConfigDependencies 0
|
||||||
|
# PROP Scc_ProjName ""
|
||||||
|
# PROP Scc_LocalPath ""
|
||||||
|
CPP=cl.exe
|
||||||
|
MTL=midl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "MakeLangId - Win32 Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 0
|
||||||
|
# PROP BASE Output_Dir "Release"
|
||||||
|
# PROP BASE Intermediate_Dir "Release"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 0
|
||||||
|
# PROP Output_Dir "Release"
|
||||||
|
# PROP Intermediate_Dir "Release"
|
||||||
|
# PROP Ignore_Export_Lib 0
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /c
|
||||||
|
# ADD CPP /nologo /Gd /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "WIN32_LEAN_AND_MEAN" /FD /c
|
||||||
|
# SUBTRACT CPP /YX /Yc /Yu
|
||||||
|
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x40d /d "NDEBUG"
|
||||||
|
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
|
||||||
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /entry:"WinMain" /subsystem:windows /pdb:none /machine:I386 /nodefaultlib /opt:nowin98
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "MakeLangId - Win32 Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "Debug"
|
||||||
|
# PROP BASE Intermediate_Dir "Debug"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "Debug"
|
||||||
|
# PROP Intermediate_Dir "Debug"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /GZ /c
|
||||||
|
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Yu"stdafx.h" /FD /GZ /c
|
||||||
|
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x40d /d "_DEBUG"
|
||||||
|
# ADD RSC /l 0x40d /d "_DEBUG"
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
|
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# Begin Target
|
||||||
|
|
||||||
|
# Name "MakeLangId - Win32 Release"
|
||||||
|
# Name "MakeLangId - Win32 Debug"
|
||||||
|
# Begin Group "Source Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\MakeLangId.cpp
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# Begin Group "Header Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\resource.h
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# Begin Group "Resource Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\resource.rc
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\ReadMe.txt
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\xp.xml
|
||||||
|
# End Source File
|
||||||
|
# End Target
|
||||||
|
# End Project
|
29
Contrib/MakeLangId/MakeLangId.dsw
Normal file
29
Contrib/MakeLangId/MakeLangId.dsw
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||||
|
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Project: "MakeLangId"=.\MakeLangId.dsp - Package Owner=<4>
|
||||||
|
|
||||||
|
Package=<5>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
Package=<4>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Global:
|
||||||
|
|
||||||
|
Package=<5>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
Package=<3>
|
||||||
|
{{{
|
||||||
|
}}}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
|
20
Contrib/MakeLangId/resource.h
Normal file
20
Contrib/MakeLangId/resource.h
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
//{{NO_DEPENDENCIES}}
|
||||||
|
// Microsoft Developer Studio generated include file.
|
||||||
|
// Used by resource.rc
|
||||||
|
//
|
||||||
|
#define IDR_MANIFEST 1
|
||||||
|
#define IDD_DIALOG 101
|
||||||
|
#define IDC_SUB 1001
|
||||||
|
#define IDC_PRIMARY 1002
|
||||||
|
#define IDC_RESULT 1003
|
||||||
|
|
||||||
|
// Next default values for new objects
|
||||||
|
//
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
|
#define _APS_NEXT_RESOURCE_VALUE 104
|
||||||
|
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||||
|
#define _APS_NEXT_CONTROL_VALUE 1005
|
||||||
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
|
#endif
|
||||||
|
#endif
|
114
Contrib/MakeLangId/resource.rc
Normal file
114
Contrib/MakeLangId/resource.rc
Normal file
|
@ -0,0 +1,114 @@
|
||||||
|
//Microsoft Developer Studio generated resource script.
|
||||||
|
//
|
||||||
|
#include "resource.h"
|
||||||
|
|
||||||
|
#define APSTUDIO_READONLY_SYMBOLS
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Generated from the TEXTINCLUDE 2 resource.
|
||||||
|
//
|
||||||
|
#include "afxres.h"
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// English (U.S.) resources
|
||||||
|
|
||||||
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||||
|
#ifdef _WIN32
|
||||||
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||||
|
#pragma code_page(1252)
|
||||||
|
#endif //_WIN32
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Dialog
|
||||||
|
//
|
||||||
|
|
||||||
|
IDD_DIALOG DIALOG DISCARDABLE 0, 0, 135, 75
|
||||||
|
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
|
CAPTION "MakeLangID"
|
||||||
|
FONT 8, "MS Sans Serif"
|
||||||
|
BEGIN
|
||||||
|
COMBOBOX IDC_PRIMARY,7,7,121,100,CBS_DROPDOWNLIST | WS_VSCROLL |
|
||||||
|
WS_TABSTOP
|
||||||
|
COMBOBOX IDC_SUB,7,24,121,100,CBS_DROPDOWNLIST | WS_VSCROLL |
|
||||||
|
WS_TABSTOP
|
||||||
|
DEFPUSHBUTTON "Copy",IDOK,78,54,50,14
|
||||||
|
PUSHBUTTON "Exit",IDCANCEL,7,54,50,14
|
||||||
|
LTEXT "",IDC_RESULT,7,41,121,8
|
||||||
|
END
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// DESIGNINFO
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
GUIDELINES DESIGNINFO DISCARDABLE
|
||||||
|
BEGIN
|
||||||
|
IDD_DIALOG, DIALOG
|
||||||
|
BEGIN
|
||||||
|
LEFTMARGIN, 7
|
||||||
|
RIGHTMARGIN, 128
|
||||||
|
TOPMARGIN, 7
|
||||||
|
BOTTOMMARGIN, 68
|
||||||
|
END
|
||||||
|
END
|
||||||
|
#endif // APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
#endif // English (U.S.) resources
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Unknown language: 0xD, 0x1 resources
|
||||||
|
|
||||||
|
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_HEB)
|
||||||
|
#ifdef _WIN32
|
||||||
|
LANGUAGE 0xD, 0x1
|
||||||
|
#pragma code_page(1255)
|
||||||
|
#endif //_WIN32
|
||||||
|
|
||||||
|
#ifdef APSTUDIO_INVOKED
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// TEXTINCLUDE
|
||||||
|
//
|
||||||
|
|
||||||
|
1 TEXTINCLUDE DISCARDABLE
|
||||||
|
BEGIN
|
||||||
|
"resource.h\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
2 TEXTINCLUDE DISCARDABLE
|
||||||
|
BEGIN
|
||||||
|
"#include ""afxres.h""\r\n"
|
||||||
|
"\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
3 TEXTINCLUDE DISCARDABLE
|
||||||
|
BEGIN
|
||||||
|
"\r\n"
|
||||||
|
"\0"
|
||||||
|
END
|
||||||
|
|
||||||
|
#endif // APSTUDIO_INVOKED
|
||||||
|
|
||||||
|
#endif // Unknown language: 0xD, 0x1 resources
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef APSTUDIO_INVOKED
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
//
|
||||||
|
// Generated from the TEXTINCLUDE 3 resource.
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
#endif // not APSTUDIO_INVOKED
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue