Output a Text File in the wanted Fonts, Colors
Posted on 2003-03-07
I am writing in Visual C++ 6.0/C++.
What I want to do is: under C++ source code
fopen("TextFile.xxx",..); searching through the TextFile for some "wanted strings";
fonting and coloring the "wanted strings"; insert back the fonted, colored "wanted strings" onto the TextFile and use some Windows-base editor to print out the already fonted and colorred TextFile.
Ex: input TextFile contents : Name:xxxx, Address:xxx,etc
Output TextFile: Name:, Address: which are already fonted and colorred
I did try CFont->TextOut but does not work as I want.
Please help me.Thanks