HELP!!! Return between CStrings
-
hello @all, i have a mfc-program and two CStrings. i would like to connect these, but everyone in its own line, e.g. they should be separated with a Return. CString one="123"; CString two="456"; CString combination="123 456"; i posted it yesterday and somebody said, that i can use this: combination=one+0X0A+0X0D+two; but when i save my CString combination into a txt-file, the CString are not in its own line, there is only a 'symbol' between them. what must i do, that the CStrings are in their own lines??? thanks sunny
-
hello @all, i have a mfc-program and two CStrings. i would like to connect these, but everyone in its own line, e.g. they should be separated with a Return. CString one="123"; CString two="456"; CString combination="123 456"; i posted it yesterday and somebody said, that i can use this: combination=one+0X0A+0X0D+two; but when i save my CString combination into a txt-file, the CString are not in its own line, there is only a 'symbol' between them. what must i do, that the CStrings are in their own lines??? thanks sunny
use "\n" -- Help me! I'm turning into a grapefruit!
-
hello @all, i have a mfc-program and two CStrings. i would like to connect these, but everyone in its own line, e.g. they should be separated with a Return. CString one="123"; CString two="456"; CString combination="123 456"; i posted it yesterday and somebody said, that i can use this: combination=one+0X0A+0X0D+two; but when i save my CString combination into a txt-file, the CString are not in its own line, there is only a 'symbol' between them. what must i do, that the CStrings are in their own lines??? thanks sunny
It should be :one +0X0D+0X0A+two;:)
-
hello @all, i have a mfc-program and two CStrings. i would like to connect these, but everyone in its own line, e.g. they should be separated with a Return. CString one="123"; CString two="456"; CString combination="123 456"; i posted it yesterday and somebody said, that i can use this: combination=one+0X0A+0X0D+two; but when i save my CString combination into a txt-file, the CString are not in its own line, there is only a 'symbol' between them. what must i do, that the CStrings are in their own lines??? thanks sunny
why not just: combine=one+"\r\n"+two; includeh10