<?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>ALOMOHORA &#187; C/C++</title>
	<atom:link href="http://alomohora.com/tag/cc/feed/" rel="self" type="application/rss+xml" />
	<link>http://alomohora.com</link>
	<description>All about programming languages</description>
	<lastBuildDate>Tue, 25 Oct 2011 04:27:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Convert a Character Array to a BSTR</title>
		<link>http://alomohora.com/convert-a-character-array-to-a-bstr/</link>
		<comments>http://alomohora.com/convert-a-character-array-to-a-bstr/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 01:25:08 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=1745</guid>
		<description><![CDATA[How to convert a character array to a BSTR? I explain to you how to convert a character array to a BSTR. char g_url[512] = &#8220;&#8221;; BSTR oURL; You could use the CT2W macro: oURL = SysAllocString(CT2W(g_url)); This macro is defined in ATL header files #include &#60;atlbase.h&#62; Incoming search terms for the article:ct2w macro, convert [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">How to convert a character array to a BSTR?</p>
<p style="text-align: justify;"><span id="more-1745"></span></p>
<p style="text-align: justify;">I explain to you how to convert a character array to a BSTR.</p>
<p style="text-align: justify;"><em>char g_url[512] = &#8220;&#8221;;</em></p>
<p style="text-align: justify;"><em>BSTR oURL;</em></p>
<p style="text-align: justify;">You could use the CT2W macro:</p>
<p style="text-align: center;"><em>oURL = SysAllocString(CT2W(g_url));</em></p>
<p style="text-align: justify;">This macro is defined in ATL header files <strong>#include &lt;atlbase.h&gt;</strong></p>
<h4>Incoming search terms for the article:</h4><p style="text-align: justify;"><a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="ct2w macro">ct2w macro</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="convert char array to BSTR">convert char array to BSTR</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="CT2W include">CT2W include</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="char array to bstr">char array to bstr</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="CT2W header">CT2W header</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="BSTR header">BSTR header</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="header file for ct2w">header file for ct2w</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="CT2W c">CT2W c</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="sysallocstring(ct2w">sysallocstring(ct2w</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="how to convert char array to bstr">how to convert char array to bstr</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="CT2W">CT2W</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="convert char to bstr c">convert char to bstr c</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="create array of BSTR*">create array of BSTR*</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="copy char array to BSTR">copy char array to BSTR</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="ct2w atl">ct2w atl</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="ct2w include what to">ct2w include what to</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="_bstr_t create from char array">_bstr_t create from char array</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="where CT2W include">where CT2W include</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="vector of char to bstr">vector of char to bstr</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="vc 6 0 ct2w">vc 6 0 ct2w</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="SysAllocString char Array">SysAllocString char Array</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="how to convert char buffer to CComBSTR">how to convert char buffer to CComBSTR</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="how to convert a char to a BSTR">how to convert a char to a BSTR</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="Header file for CT2W()">Header file for CT2W()</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="ct2w macro header file">ct2w macro header file</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="Converting char array to BSTR">Converting char array to BSTR</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="convert _bstr_t to char array">convert _bstr_t to char array</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="c convert char * to bstr">c convert char * to bstr</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="c char to BSTR">c char to BSTR</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="C 2010 move char to BSTR">C 2010 move char to BSTR</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="bstr Append()">bstr Append()</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="bstr append char array">bstr append char array</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="ATL::CT2W">ATL::CT2W</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="appending a char* to bstr">appending a char* to bstr</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="append to bstr">append to bstr</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="append single character to bstr">append single character to bstr</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="c CT2W">c CT2W</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="CComBSTR char">CComBSTR char</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="convert vector array to bstr in c">convert vector array to bstr in c</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="convert from BSTR to char array">convert from BSTR to char array</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="convert bstr* to char array">convert bstr* to char array</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="com bstr character array">com bstr character array</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="chararray to bstr">chararray to bstr</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="char array to _bstr_t">char array to _bstr_t</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="char array to bstr vc 6">char array to bstr vc 6</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="char array to bstr c">char array to bstr c</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="ccombstr to char array coversion">ccombstr to char array coversion</a>, <a href="http://alomohora.com/convert-a-character-array-to-a-bstr/" title="#include ct2w">#include ct2w</a></p>]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/convert-a-character-array-to-a-bstr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Casting from std:string to char*</title>
		<link>http://alomohora.com/how-casting-from-stdstring-to-char/</link>
		<comments>http://alomohora.com/how-casting-from-stdstring-to-char/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 01:18:06 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=1741</guid>
		<description><![CDATA[How do I cast from std:string to char*? We can&#8217;t do that. The only thing we can get from an std::string is a const char*, which means that we can&#8217;t modify it. You get this by calling string::c_str(). Incoming search terms for the article:casting of std string* to char *]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">How do I cast from <strong>std:string</strong> to <strong>char*</strong>?</p>
<p style="text-align: justify;"><span id="more-1741"></span></p>
<p style="text-align: justify;">We can&#8217;t do that. The only thing we can get from an <strong>std::string</strong> is a <strong>const char*</strong>, which means that we can&#8217;t modify it. You get this by calling <strong>string::c_str()</strong>.</p>
<h4>Incoming search terms for the article:</h4><p style="text-align: justify;"><a href="http://alomohora.com/how-casting-from-stdstring-to-char/" title="casting of std string* to char *">casting of std string* to char *</a></p>]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/how-casting-from-stdstring-to-char/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fatal Error C1189</title>
		<link>http://alomohora.com/fatal-error-c1189/</link>
		<comments>http://alomohora.com/fatal-error-c1189/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 06:49:31 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=1820</guid>
		<description><![CDATA[fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include &#60;windows.h&#62; For solve this problem include the header #include &#60;afxcoll.h&#62; before #include &#8220;stdafx.h&#8221; in stdafx.cpp. Incoming search terms for the article:fatal error C1189: #error : WINDOWS H already included MFC apps must not #include &#60;windows h&#62;]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include &lt;windows.h&gt;</p>
<p style="text-align: justify;"><span id="more-1820"></span></p>
<p style="text-align: justify;">For solve this problem include the header #include  &lt;afxcoll.h&gt; before #include &#8220;stdafx.h&#8221; in stdafx.cpp.</p>
<h4>Incoming search terms for the article:</h4><p style="text-align: justify;"><a href="http://alomohora.com/fatal-error-c1189/" title="fatal error C1189: #error : WINDOWS H already included MFC apps must not #include &lt;windows h&gt;">fatal error C1189: #error : WINDOWS H already included MFC apps must not #include &lt;windows h&gt;</a></p>]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/fatal-error-c1189/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

