<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CreateProcess LPCWSTR^^]]></title><description><![CDATA[<p>hiho hab dan problem, welches bei anderen wohl nicht auftritt komischerweise.</p>
<pre><code class="language-cpp">STARTUPINFO si;
	PROCESS_INFORMATION pi;
	ZeroMemory(&amp;si, sizeof(si));
	si.cb = sizeof(si);
	ZeroMemory( &amp;pi, sizeof(pi) );

	if(!CreateProcess(&quot;C:\\Windows\\system32\\cmd.exe&quot;,
					  &quot;pro2.exe&quot;,
					  NULL,
					  NULL,
					  FALSE,
					  0,
					  NULL,
					  NULL,
					  &amp;si,
					  &amp;pi )
					  )
	{
		cout&lt;&lt;&quot;CreateProcess failed &quot;&lt;&lt;GetLastError()&lt;&lt;endl;
		return 1;
	}
</code></pre>
<p>und kommt folgendes vom visualstudio2005:</p>
<blockquote>
<p>error C2664: 'CreateProcessW' : cannot convert parameter 1 from 'const char [28]' to 'LPCWSTR'</p>
</blockquote>
<p>wäre über schnelle hilfe dankbar. muss morgen praktikum abgeben und kriegs net hin*g</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178573/createprocess-lpcwstr</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 13:13:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178573.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Apr 2007 11:47:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CreateProcess LPCWSTR^^ on Thu, 12 Apr 2007 11:47:08 GMT]]></title><description><![CDATA[<p>hiho hab dan problem, welches bei anderen wohl nicht auftritt komischerweise.</p>
<pre><code class="language-cpp">STARTUPINFO si;
	PROCESS_INFORMATION pi;
	ZeroMemory(&amp;si, sizeof(si));
	si.cb = sizeof(si);
	ZeroMemory( &amp;pi, sizeof(pi) );

	if(!CreateProcess(&quot;C:\\Windows\\system32\\cmd.exe&quot;,
					  &quot;pro2.exe&quot;,
					  NULL,
					  NULL,
					  FALSE,
					  0,
					  NULL,
					  NULL,
					  &amp;si,
					  &amp;pi )
					  )
	{
		cout&lt;&lt;&quot;CreateProcess failed &quot;&lt;&lt;GetLastError()&lt;&lt;endl;
		return 1;
	}
</code></pre>
<p>und kommt folgendes vom visualstudio2005:</p>
<blockquote>
<p>error C2664: 'CreateProcessW' : cannot convert parameter 1 from 'const char [28]' to 'LPCWSTR'</p>
</blockquote>
<p>wäre über schnelle hilfe dankbar. muss morgen praktikum abgeben und kriegs net hin*g</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264560</guid><dc:creator><![CDATA[blacksh33p]]></dc:creator><pubDate>Thu, 12 Apr 2007 11:47:08 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcess LPCWSTR^^ on Thu, 12 Apr 2007 11:50:21 GMT]]></title><description><![CDATA[<p>Schließ mal die beiden String-Literale in '_T(...)' ein (und lies dir in der MSDN das Kapitel über 'UNICODE' durch, um zu verstehen, was das soll).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264563</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 12 Apr 2007 11:50:21 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcess LPCWSTR^^ on Thu, 12 Apr 2007 11:56:49 GMT]]></title><description><![CDATA[<p>oki danke habs verstanden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264573</guid><dc:creator><![CDATA[blacksh33p]]></dc:creator><pubDate>Thu, 12 Apr 2007 11:56:49 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcess LPCWSTR^^ on Thu, 12 Apr 2007 18:58:22 GMT]]></title><description><![CDATA[<p>Zum Parameter 'lpCommandLine':</p>
<blockquote>
<p>The Unicode version of this function, CreateProcessW, can modify the contents of this string. Therefore, this parameter cannot be a pointer to read-only memory (such as a const variable or a literal string). If this parameter is a constant string, the function may cause an access violation.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1264906</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264906</guid><dc:creator><![CDATA[:p]]></dc:creator><pubDate>Thu, 12 Apr 2007 18:58:22 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcess LPCWSTR^^ on Fri, 13 Apr 2007 07:48:28 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1265084</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1265084</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Fri, 13 Apr 2007 07:48:28 GMT</pubDate></item></channel></rss>