- Convert Chinese to Ansii string
7 int main(int argc, char* argv[])
8 {
9 printf("Hello World!/n");
10
11 char chTest[]="电";
12 int n1 = (unsigned char)(chTest[0]) << 8;
13 int n2 = (unsigned char)chTest[1];
14
15 int i = n1+n2;
16 char a[3];
17 a[0] = (char)((i & 0xff00) >> 8);
18 a[1] = (char)(i & 0xff);
19 a[2] = 0;
20 printf("%s/n",a);
21
22 return 0;
23 }
-
Some Links:
rtflib from www.codeproject.com
rtfx you can google it.
latex2rtf from www.sourceforge.net
gc1039.exe from www.msdn.com. It will give you some info about how to read rtf file directly using c++.
http://msdn.microsoft.com/en-us/library/aa140301.aspx
abiword http://www.abisource.com/ There are a RTF importer/Exporter plugin source code.But I do not familiar with it.
I think in Windows Platform,you can use RichEdit control to do the below actions:
Merge 2+ rtf files to one rtf file just use copy and paste,of course you should use TOM or just create 2 hidden richEdt box to switch the data.That is easy.Also you can find the plain text from RTF use EM_GETTEXTEX and stream out a butter then go to find the string what you want catch. -
RTF have the advantage and disadvantage.I recommended you to use HTML,XML etc.But RTF is good supported by MS.
RTF file research tips
最新推荐文章于 2024-09-15 20:11:42 发布