Stripping Quotation Marks from an .str File

  1. Place the tilde (~) in your LOC_* definition between the LOC_* token name and the string that the LOC_* token represents.

    For example:

    //Common.str
    #define LOC_LCID ~"409"
    
  2. Use the LOC_* token as you would normally.

    For example:

    //Common.reg
    [HKEY_LOCAL_MACHINE\nls]
      "DefaultLCID" = dword:LOC_LCID
    
  3. Run Makeimg.exe.

During the build process, Platform Builder strips the quotation marks from the LOC_* token.

The following code example shows how the Common.reg file appears after integration with the Common.str file.

"DefaultLCID" = dword:409

See Also

Configuration File Localization | Make Binary Image Tool

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.