<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>哥哥万的博客 &#187; C/C++</title>
	<atom:link href="http://www.gegewan.org/cat/cc/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gegewan.org</link>
	<description>我是哥哥万，也是gegewan，伪程序员</description>
	<lastBuildDate>Thu, 19 Aug 2010 02:49:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>BCB UTF-8 格式转换</title>
		<link>http://www.gegewan.org/html/36.html</link>
		<comments>http://www.gegewan.org/html/36.html#comments</comments>
		<pubDate>Thu, 13 Nov 2008 17:10:00 +0000</pubDate>
		<dc:creator>gegewan</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://www.gegewan.org/html/36.html</guid>
		<description><![CDATA[如果是字串转换.BCB有多个方法(如TStringConverter,或API的 WideCharToMultiByte/MultiByteToWideChar,VCL的WideCharToString/StringToWideChar等)    当然,BCB本身就支持三种字串,前两种可自动转,后一种有函数:     String x; //GBK     WideString y; //unicode     UTF8String z; //utf8     x=y; //自动     y=x; //自动     z=AnsiToUtf8(x);     x=Utf8ToAnsi(z);
]]></description>
		<wfw:commentRss>http://www.gegewan.org/html/36.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C++ builder中动态改变浏览器中的内容</title>
		<link>http://www.gegewan.org/html/33.html</link>
		<comments>http://www.gegewan.org/html/33.html#comments</comments>
		<pubDate>Fri, 03 Oct 2008 20:13:00 +0000</pubDate>
		<dc:creator>gegewan</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://www.gegewan.org/html/33.html</guid>
		<description><![CDATA[先在浏览器中放一个浏览器控件，名字叫wb，然后用下面的代码来实现
&#160;
void __fastcall TForm1::SpeedButton1Click(TObject *Sender)    {     &#160;&#160;&#160; IDispatch *wdoc = static_cast&#60;IDispatch *&#62;(wb-&#62;Document);     &#160;&#160;&#160; IHTMLDocument2* pHtmlDoc2 = static_cast&#60;IHTMLDocument2 *&#62;(wdoc);     &#160;&#160;&#160; if(pHtmlDoc2){     &#160;&#160;&#160;&#160;&#160;&#160;&#160; HRESULT hr = S_OK;     &#160;&#160;&#160;&#160;&#160;&#160;&#160; IHTMLElement *pBodyElement;     &#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]]]></description>
		<wfw:commentRss>http://www.gegewan.org/html/33.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于在BCB里面动态调用TXMLDocument</title>
		<link>http://www.gegewan.org/html/31.html</link>
		<comments>http://www.gegewan.org/html/31.html#comments</comments>
		<pubDate>Sat, 27 Sep 2008 14:10:00 +0000</pubDate>
		<dc:creator>gegewan</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://www.gegewan.org/html/31.html</guid>
		<description><![CDATA[由于做EasyNews我开始使用TXMLDocument，但是很遗憾的是，出现了一些莫名其妙的错误。基本代码如下：


    //这里没有写错，TXMLDocument的构建函数就是这么定义的

    //很奇怪的做法，一般来说T打头的都是VCL类，需要一个宿主

    //但是这个类不需要宿主

    TXMLDocument* MyXml=new TXMLDocument(&#34;&#34;);

    try

    {

        MyXml-&#62;LoadFromFile(&#34;test.xml&#34;);

    }

    catch(...)

    {

        MyXml-&#62;DocumentElement=MyXml-&#62;CreateElement(

 [...]]]></description>
		<wfw:commentRss>http://www.gegewan.org/html/31.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
