summaryrefslogtreecommitdiff
path: root/unicode
diff options
context:
space:
mode:
Diffstat (limited to 'unicode')
-rw-r--r--unicode/unicode.cpp58
-rw-r--r--unicode/unicode.vpc43
2 files changed, 101 insertions, 0 deletions
diff --git a/unicode/unicode.cpp b/unicode/unicode.cpp
new file mode 100644
index 0000000..09120f4
--- /dev/null
+++ b/unicode/unicode.cpp
@@ -0,0 +1,58 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#include "unicode/unicode.h"
+
+class CUnicodeWindows : public IUnicodeWindows
+{
+public:
+ virtual LRESULT DefWindowProcW(
+ HWND hWnd,
+ UINT Msg,
+ WPARAM wParam,
+ LPARAM lParam )
+ {
+ return ::DefWindowProcW( hWnd, Msg, wParam, lParam );
+ }
+
+ virtual HWND CreateWindowExW(
+ DWORD dwExStyle,
+ LPCWSTR lpClassName,
+ LPCWSTR lpWindowName,
+ DWORD dwStyle,
+ int x,
+ int y,
+ int nWidth,
+ int nHeight,
+ HWND hWndParent,
+ HMENU hMenu,
+ HINSTANCE hInstance,
+ LPVOID lpParam
+ )
+ {
+ return ::CreateWindowExW( dwExStyle, lpClassName, lpWindowName, dwStyle, x, y,
+ nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam );
+ }
+
+ virtual ATOM RegisterClassW
+ (
+ CONST WNDCLASSW *lpWndClass
+ )
+ {
+ return ::RegisterClassW( lpWndClass );
+ }
+
+ virtual BOOL UnregisterClassW
+ (
+ LPCWSTR lpClassName,
+ HINSTANCE hInstance
+ )
+ {
+ return ::UnregisterClassW( lpClassName, hInstance );
+ }
+};
+
+EXPOSE_SINGLE_INTERFACE( CUnicodeWindows, IUnicodeWindows, VENGINE_UNICODEINTERFACE_VERSION ); \ No newline at end of file
diff --git a/unicode/unicode.vpc b/unicode/unicode.vpc
new file mode 100644
index 0000000..9c90cf0
--- /dev/null
+++ b/unicode/unicode.vpc
@@ -0,0 +1,43 @@
+//-----------------------------------------------------------------------------
+// UNICODE.VPC
+//
+// Project Script
+//-----------------------------------------------------------------------------
+
+$Macro SRCDIR ".."
+$Macro OUTBINDIR "$SRCDIR\..\game\bin"
+
+$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
+
+$Configuration "Debug"
+{
+ $Compiler
+ {
+ $PreprocessorDefinitions "$BASE;UNICODE_EXPORTS"
+ }
+}
+
+$Configuration "Release"
+{
+ $Compiler
+ {
+ $PreprocessorDefinitions "$BASE;UNICODE_EXPORTS"
+ }
+
+ $Linker
+ {
+ $AdditionalDependencies "$BASE unicows.lib"
+
+ $SystemLibraries "iconv;z" [$OSXALL]
+
+ $SystemLibraries "rt" [$LINUXALL]
+ }
+}
+
+$Project "Unicode"
+{
+ $Folder "Source Files"
+ {
+ $File "unicode.cpp"
+ }
+}