I am trying to use the special character § when printing a text string in my program. I pass the § character to a CString variable but when it comes print time text types out and after it prints the § character it does a return and continues with the sentence. Every place in my code that i have the § character it prints but the does a return after I print it. Here is my code:
The results this will give me at print time is:
if (iState == 49 && iSubLien && dFinancedAmount <= 25000)
csNoticeText = "Notice to Married Applicants: Wisc. Statutes §766.59 or a court decree under Wisc. Statutues §766.70 adversely affects the interest of the lender.";
m_dbFirst.Set_Field( csNoticeText, _Application_MarriedNotice_Text);
Notice to Married Applicants: Wisc. Statutes §
766.59 or a court decree under Wisc. Statutues §
766.70 adversely affects the interest of the lender.
I am hoping there is a character or something I can put in front of the § character to make C++ realize i want it treated as text. If I am trying to do something impossible and that is communicated to me that is appreciated too. Thanks for any help and those that took the time to look. Have a good day.
Try putting this in front of the character: "\"
Figure out its octal equivalent and put it in the string:
printf("Octal 315 is \315\n");
It's not a standard character, so how you represent it in your code depends on how (or even if) your current display device is even capable of displaying that character.
Thanks for your help everyone! I will see if I can use the information you sent me to get it working. Thanks again.