Share via


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.

Security noteSecurity Note

This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Microsoft provides this sample code "AS IS" with no warranties.

To get samples and instructions for installing them:

To access samples from Visual Studio

  • On the Help menu, click Samples.

    By default, these samples are installed in drive:\Program Files\Microsoft Visual Studio 10.0\Samples\.

  • For the most recent version of this sample and a list of other samples, see Visual Studio Samples on the MSDN Web site.

Requirements

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

  1. Open the solution file unires.sln.

  2. From the Build menu, click Build.

  3. 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.

Keywords

This sample demonstrates the following keywords:

LoadString; CreateFontIndirect; GetTextMetrics; ScrollWindowEx; SetScrollInfo

See Also

Other Resources

International Samples

General Samples