<?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[CreateProcessWithLogonW]]></title><description><![CDATA[<p>Hallo,</p>
<p>Was für einen Parameter erwartet die Funktion bei den LPWSTR?<br />
Wenn ich zB als Commandline L&quot;notepad.exe&quot; angebe funktioniert es.<br />
Ich will das jedoch als Variable übergeben.<br />
Wenn ich zb einen CString nehme oder einen string sagt er &quot;Falscher Parameter&quot;.<br />
Oder wenn ich den CString auf LPWSTR caste funktioniert es ebenfalls nicht.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/226197/createprocesswithlogonw</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 09:23:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/226197.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Oct 2008 15:32:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CreateProcessWithLogonW on Thu, 30 Oct 2008 15:32:51 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Was für einen Parameter erwartet die Funktion bei den LPWSTR?<br />
Wenn ich zB als Commandline L&quot;notepad.exe&quot; angebe funktioniert es.<br />
Ich will das jedoch als Variable übergeben.<br />
Wenn ich zb einen CString nehme oder einen string sagt er &quot;Falscher Parameter&quot;.<br />
Oder wenn ich den CString auf LPWSTR caste funktioniert es ebenfalls nicht.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607281</guid><dc:creator><![CDATA[MastaEda]]></dc:creator><pubDate>Thu, 30 Oct 2008 15:32:51 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Thu, 30 Oct 2008 15:42:44 GMT]]></title><description><![CDATA[<p>Vermutlich CStringW (oder wchar_t). Wenn in deinem Projekt nicht Unicode eingestellt ist, wird CString ja &quot;getypedeft&quot; auf CStringA.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607290</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607290</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 30 Oct 2008 15:42:44 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Thu, 30 Oct 2008 15:53:28 GMT]]></title><description><![CDATA[<p>funktioniert leider nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607297</guid><dc:creator><![CDATA[MastaEda]]></dc:creator><pubDate>Thu, 30 Oct 2008 15:53:28 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Thu, 30 Oct 2008 15:55:47 GMT]]></title><description><![CDATA[<p>MastaEda schrieb:</p>
<blockquote>
<p>funktioniert leider nicht</p>
</blockquote>
<p>Inwiefern? Fehlerbeschreibung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607301</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 30 Oct 2008 15:55:47 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Thu, 30 Oct 2008 15:58:18 GMT]]></title><description><![CDATA[<p>Er kompiliert das mit CStringW auf jeden Fall...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607303</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607303</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 30 Oct 2008 15:58:18 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Thu, 30 Oct 2008 16:09:15 GMT]]></title><description><![CDATA[<p>wchar_t:<br />
error C2440: '=' : 'char [12]' kann nicht in 'unsigned short' konvertiert werden</p>
<p>einem wstring kann ich nix zuweisen<br />
wstring wtest;<br />
wtest=&quot;notepad.exe&quot;;<br />
ergibt:<br />
error C2679: Binaerer Operator '=' : Kein Operator definiert, der einen rechtsseitigen Operator vom Typ 'char [12]' akzeptiert (oder keine geeignete Konvertierung moegli</p>
<p>so funktioniert es:<br />
wtest=L&quot;notepad.exe&quot;;<br />
aber dieses L kann ich nicht auf eine Variable anwenden</p>
<p>CStringW gibts bei mir nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607314</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607314</guid><dc:creator><![CDATA[MastaEda]]></dc:creator><pubDate>Thu, 30 Oct 2008 16:09:15 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Thu, 30 Oct 2008 17:37:09 GMT]]></title><description><![CDATA[<p>es geht jetzt mit MultiByteToWideChar()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607366</guid><dc:creator><![CDATA[MastaEda]]></dc:creator><pubDate>Thu, 30 Oct 2008 17:37:09 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Thu, 30 Oct 2008 19:44:30 GMT]]></title><description><![CDATA[<p>T2W!</p>
<p>Wenn Du VC6 hast gibt es kein CStringW.</p>
<p>Mach aus Deinem Projekt ein Unicode Projekt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607440</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607440</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 30 Oct 2008 19:44:30 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Thu, 30 Oct 2008 22:44:34 GMT]]></title><description><![CDATA[<p>Hallo.</p>
<p>Getestet mit VS 08 Expr. und VS6. TestObject: CreateFile(A/W):</p>
<p>char str[] = {&quot;\.\something&quot;};</p>
<p>A: CreateFileA(str, ...); geht.</p>
<p>W: CreateFileW((LPCWSTR) str, ...); geht auch.</p>
<p>A und casten: Fehler.<br />
W und nicht casten: Auch Fehler.</p>
<p>Casten? Och nö, ich nehm lieber Klaus.</p>
<p>Gruß</p>
<p>Lars</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607577</guid><dc:creator><![CDATA[chezzmatazz]]></dc:creator><pubDate>Thu, 30 Oct 2008 22:44:34 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Fri, 31 Oct 2008 06:36:59 GMT]]></title><description><![CDATA[<p>chezzmatazz schrieb:</p>
<blockquote>
<p>Hallo.</p>
<p>Getestet mit VS 08 Expr. und VS6. TestObject: CreateFile(A/W):</p>
<p>char str[] = {&quot;\.\something&quot;};</p>
<p>A: CreateFileA(str, ...); geht.</p>
<p>W: CreateFileW((LPCWSTR) str, ...); geht auch.</p>
<p>A und casten: Fehler.<br />
W und nicht casten: Auch Fehler.</p>
</blockquote>
<p>Ich glaube Du solltest Dir erst einmal klar werden was Unicode ist!</p>
<pre><code>char str[] = &quot;\\.\something&quot;;
CreateFileA(str, ...); // geht! Ist ja auch ein char*
CreateFileW((LPCWSTR) str, ...); // unsinnig weil einen char* kann man nicht zu wchar_t* casten
CreateFileW(CA2W(str), ...); // geht! Weil hier konvertiert wird
wchar_t wstr[] = L&quot;\\.\something&quot;;
CreateFileW(wstr, ...); // geht auch weil es ein wchar_t* ist
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1607791</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607791</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 31 Oct 2008 06:36:59 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Fri, 31 Oct 2008 06:43:47 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<pre><code>char str[] = &quot;\\.\something&quot;;
</code></pre>
</blockquote>
<p>Ich glaube, du solltest dir erst einmal klar werden, was Escapesequenzen sind! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1607796</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1607796</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Fri, 31 Oct 2008 06:43:47 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Sat, 01 Nov 2008 20:59:45 GMT]]></title><description><![CDATA[<p>Da verhau ich mich immer wieder. Scheiß Unix ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1608737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1608737</guid><dc:creator><![CDATA[chezzmatazz]]></dc:creator><pubDate>Sat, 01 Nov 2008 20:59:45 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Sat, 01 Nov 2008 21:06:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/35992">@Martin</a>:</p>
<p>Warum können das dann VS 08 Expr. und VS6?</p>
<p>Gruß</p>
<p>Lars</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1608739</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1608739</guid><dc:creator><![CDATA[chaezzmatazz]]></dc:creator><pubDate>Sat, 01 Nov 2008 21:06:45 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Sat, 01 Nov 2008 21:10:41 GMT]]></title><description><![CDATA[<p>Wer ALLES über UNICODE wissen will:</p>
<pre><code class="language-html">http://www.unicode.org/
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1608740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1608740</guid><dc:creator><![CDATA[chezzmatazz]]></dc:creator><pubDate>Sat, 01 Nov 2008 21:10:41 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Sun, 02 Nov 2008 15:17:03 GMT]]></title><description><![CDATA[<p>chaezzmatazz schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/35992">@Martin</a>:</p>
<p>Warum können das dann VS 08 Expr. und VS6?</p>
</blockquote>
<p>Was können die?<br />
Letzten Endes sind VC2008 und VC6 ziemlich gleich. Nur wird bei VC2008 automatisch Unicode in den Projekteinstellungen bei neuen Projekten verwendet.<br />
In VC6 wurde bei neuen Projekten immer MBCS eingestellt.</p>
<p>Du solltest Die also ein paar Grundlagen aneignen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1608977</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1608977</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 02 Nov 2008 15:17:03 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Mon, 03 Nov 2008 20:45:54 GMT]]></title><description><![CDATA[<p>Es war völlig egal, welche Einstellungen ich im Projekt (VS 08 Expr.) setzte, solange ich sauber castete.</p>
<p>Gruß</p>
<p>Lars</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609659</guid><dc:creator><![CDATA[chezzmatazz]]></dc:creator><pubDate>Mon, 03 Nov 2008 20:45:54 GMT</pubDate></item><item><title><![CDATA[Reply to CreateProcessWithLogonW on Tue, 04 Nov 2008 06:59:12 GMT]]></title><description><![CDATA[<p>chezzmatazz schrieb:</p>
<blockquote>
<p>Es war völlig egal, welche Einstellungen ich im Projekt (VS 08 Expr.) setzte, solange ich sauber castete.</p>
</blockquote>
<p>Ein Cast nützt bei Unicode MBCS gar nichts! Du hast evtl. das Problem nicht verstanden...</p>
<p>BTW: Wenn Du eine Funktion in VC6 mit einem CString hast und dieses Modul Unicode verwendet, und Du hast ein weiteres Modul, dass MBCS verwendet, dann kann dieses MBCS Modul die Unicode CString Funktion nicht nutzen!<br />
In VC6 gab es noch keine Aufteilung in CStringA und CStringW.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1609771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1609771</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 04 Nov 2008 06:59:12 GMT</pubDate></item></channel></rss>