<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>C++</title>
        <link>http://www.darkside.co.za/category/12.aspx</link>
        <description>C++</description>
        <language>en-ZA</language>
        <copyright>Ryan Schreiber</copyright>
        <generator>Subtext Version 2.1.0.5</generator>
        <item>
            <title>C++ Compile Error - C2664</title>
            <link>http://www.darkside.co.za/archive/2009/11/16/compile-error-c2664.aspx</link>
            <description>&lt;p&gt;If you find you’re getting compile errors something along the lines of&lt;/p&gt;  &lt;p&gt;&lt;font color="#ff0000" face="Courier New"&gt;error C2664: 'CreateFileW' : cannot convert parameter 1 from 'char [261]' to 'LPCWSTR'&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;or&lt;/p&gt;  &lt;p&gt;&lt;font color="#ff0000" face="Courier New"&gt;error C2664: 'CreateProcessW' : cannot convert parameter 2 from 'char *' to 'LPWSTR'&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;I got plenty of these when compiling code which I C&amp;amp;P’d, which was working perfectly in one project, to a new project I had just created; All the errors were related to converting char/char arrays to LPWSTR. There are plenty of programmatic ways of converting this data, and keep in mind you may still want to check these out, rather than my “simple” fix, which is change the “Character Set” property in the project configuration settings to “Multi-Byte”&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="/files/images/CCompileErrorC2664.gif" width="587" height="395" /&gt;&lt;/p&gt;&lt;img src="http://www.darkside.co.za/aggbug/109.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Ryan Schreiber</dc:creator>
            <guid>http://www.darkside.co.za/archive/2009/11/16/compile-error-c2664.aspx</guid>
            <pubDate>Mon, 16 Nov 2009 12:19:13 GMT</pubDate>
            <comments>http://www.darkside.co.za/archive/2009/11/16/compile-error-c2664.aspx#feedback</comments>
            <wfw:commentRss>http://www.darkside.co.za/comments/commentRss/109.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>
