News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

CR & LF in STRINGTABLE resource

Started by ossama, January 08, 2008, 10:54:37 PM

Previous topic - Next topic

ossama

hello,
i have this string :

my_string db "this is line one",13,10,"this is line two",0

i need to use strings in resource not in source code like the above,my strings have CR & LF ,how can i use theme in the string table in resource?
i hope you understand me ,i have very few words in english
thank you

ramguru

Use C style:
"this is line one\nthis is line two"

ossama

Quote from: ramguru on January 08, 2008, 11:01:33 PM
Use C style:
"this is line one\nthis is line two"
thank you for the help
i did not know that  i can use C styles
regards OSSAMA

ic2

Not sure if this is what you're trying to do. but these are things i do with strings.

.const
crlf        equ     0dh, 0ah

.Data
LineEnd1   db  crlf,0
LineEnd2   db 13,10,13,10,0
LineEnd3   db 13,10

.code


invoke WriteFile,hFile,offset LineEnd1,2,offset byteString,0


ossama

hi ic2 !
ramguru's solved my problem
thank you ic2