multiline strings in .rc files (was: Implementation of "start.exe", take 3)

Dan Kegel dank at kegel.com
Sat Jan 18 13:29:53 CST 2003


davep wrote:
> On Saturday 18 Jan 2003 08:44, Dan Kegel wrote:
> 
> 
>>Remaining issue I could use help with:
>>* multiline strings from resource file are displayed with extra newline
>>between lines in wine, but not in windows.  To reproduce, build
>>either as winelib app or build under MSVC6, then run in wine;
>>usage message comes out double-spaced.  Help!
> 
> 
> Use a backslash on the end of each line to escape the LF.
> 
> Look at programs/wcmd/wcmdrc.rc for an example.

I did.  Unfortunately, if I do
  STRING_FOO,  "This is a two-line \
string"
it looks good in Wine, but it's run together on one line in Windows.
Conversely, if I do
  STRING_FOO,   "This is a two-line \n \
string"
it looks good in Windows, but it's double-spaced in Wine.

Something's fishy here.  Our .rc files should be
usable in both environments without change.
- Dan

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045




More information about the wine-devel mailing list