Microsoft KB Archive/44385

{|
 * width="100%"|

Line Continuation and Carriage Returns in String Tables

 * }

Q44385

-

The information in this article applies to:


 * Microsoft Windows Software Development Kit (SDK) versions 3.1, 3.0
 * Microsoft Win32 Software Development Kit (SDK), versions 3.5, 3.51, 4.0

-

The RC compiler does not offer a line-continuation symbol for strings in string tables.

To force a carriage return into a long line of text, use one of the methods described below.

One method is to force the carriage return using \012\015. The following example demonstrates the use of \012\015 and should be considered to be on one continuous line:

  STRINGTABLE BEGIN IDSLONGSTRING, &quot;This is a long line of text so I would like \012\015 to force a carriage return.&quot; END

For more information on this method, query in the Microsoft Knowledge Base on the following words:

"STRINGTABLE WinLoadString"

Another method of forcing a carriage return is to press ENTER and continue the line on the next line. The following example will force a carriage return after the word &quot;like.&quot;

  STRINGTABLE BEGIN IDSLONGSTRING, &quot;This is a long line of text so I would like to force a carriage return&quot; END

If you try to use the \n or other \ characters, the RC compiler will ignore them.

NOTE: There is a 255-character limit (per string) in a string table. For more information on this limit, please query on the following words in the Microsoft Knowledge Base:

"STRINGTABLE length 255" Additional query words: 3.00 3.10 3.50 4.00 95

Keywords :

Issue type :

Technology : kbWin32SDKSearch kbAudDeveloper kbWin3xSearch kbSDKSearch kbWin32sSearch kbWin32SDK400 kbWin32SDK350 kbWin32SDK351 kbWinSDKSearch kbWinSDK300 kbWinSDK310