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:
Code:
CString csNoticeText;
short iState;
double dFinancedAmount;
m_dbFirst.Get_Field(&iState, _Policy_ApplicableLaw_State);
m_dbFirst.Get_Field(&iSubLien, _Loan_OtherCollateral_Lien_Subordinate);
m_dbFirst.Get_Field(&dFinancedAmount, _Loan_Financed_Amount);
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);
}
else
m_dbFirst.Del_Field( _Application_MarriedNotice_Text);
The results this will give me at print time is:
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.
~Beaner~