Unires Sample: Demonstrates the Use of Unicode Resource Files
The Unires sample demonstrates how to create a Win32 application with only Unicode string resources and how to integrate a Unicode .rc file into a project. As the resource editor only supports ANSI in Visual Studio .NET, modifications to the .rc file have to be made in the source editor.
Running this application requires an operating system that allows the display of Unicode windows — that is, Windows 2000 or later. It also requires that you have language support for all possible Windows languages installed (check in the Control Panel under Regional Options). The application can be built on any Windows version supported by Visual Studio .NET.
Building and Running the Sample
To build and run this sample
- Open the solution file unires.sln.
- From the Build menu, click Build.
- From the Debug menu, click Start Without Debugging. You will get a window with the sentence "When the world wants to talk, it speaks Unicode." displayed in 41 languages.
This sample demonstrates the following keywords:
LoadString; CreateFontIndirect; GetTextMetrics; ScrollWindowEx; SetScrollInfo