<?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[CString in LPWSTR]]></title><description><![CDATA[<p>Hi<br />
Ich muss einen LPOLESTR der einen Pfad enthält an eine Funktion übergeben. Mit L&quot;PfadZurDatei&quot; funktioniert das, allerdings habe ich den Pfad in einem CString.<br />
Ich habe in der msdn ein Makro zum umwandeln von LPOLESTR in LPSTR (W2OLE) gefunden, aber wie bekomme ich denn jetzt den CString in den LPSTR?<br />
reinterpret_cast&lt;LPSTR&gt;(char* szPfad) nimmt der compiler an, aber es kommt nichs vernünftiges dabei raus(heißt es landet kein passender Pfad im LPSTR).<br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/149800/cstring-in-lpwstr</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 03:40:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/149800.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Jun 2006 14:45:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CString in LPWSTR on Fri, 09 Jun 2006 14:45:02 GMT]]></title><description><![CDATA[<p>Hi<br />
Ich muss einen LPOLESTR der einen Pfad enthält an eine Funktion übergeben. Mit L&quot;PfadZurDatei&quot; funktioniert das, allerdings habe ich den Pfad in einem CString.<br />
Ich habe in der msdn ein Makro zum umwandeln von LPOLESTR in LPSTR (W2OLE) gefunden, aber wie bekomme ich denn jetzt den CString in den LPSTR?<br />
reinterpret_cast&lt;LPSTR&gt;(char* szPfad) nimmt der compiler an, aber es kommt nichs vernünftiges dabei raus(heißt es landet kein passender Pfad im LPSTR).<br />
mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074663</guid><dc:creator><![CDATA[WieJetzt?]]></dc:creator><pubDate>Fri, 09 Jun 2006 14:45:02 GMT</pubDate></item><item><title><![CDATA[Reply to CString in LPWSTR on Fri, 09 Jun 2006 15:00:47 GMT]]></title><description><![CDATA[<p>Hmm... seid wann ist google eigentlich wieder aus dem Trend? Ist doch die beliebteste Suchmaschiene der Welt <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>
<p><a href="http://www.developpez.net/forums/showthread.php?t=28125" rel="nofollow">http://www.developpez.net/forums/showthread.php?t=28125</a><br />
<a href="http://groups.google.de/group/microsoft.public.vc.mfc/browse_thread/thread/754cfb28ffbdfc86/bfe9d297028fce92?lnk=st&amp;q=CString+to+LPOLESTR&amp;rnum=2#bfe9d297028fce92" rel="nofollow">http://groups.google.de/group/microsoft.public.vc.mfc/browse_thread/thread/754cfb28ffbdfc86/bfe9d297028fce92?lnk=st&amp;q=CString+to+LPOLESTR&amp;rnum=2#bfe9d297028fce92</a> &lt;= am Ende...<br />
<a href="http://groups.google.de/group/microsoft.public.vc.mfc/browse_thread/thread/781b806dc0f91894/ed4f0c13b00fac40?lnk=st&amp;q=CString+to+LPOLESTR&amp;rnum=1#ed4f0c13b00fac40" rel="nofollow">http://groups.google.de/group/microsoft.public.vc.mfc/browse_thread/thread/781b806dc0f91894/ed4f0c13b00fac40?lnk=st&amp;q=CString+to+LPOLESTR&amp;rnum=1#ed4f0c13b00fac40</a> usw...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1074677</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1074677</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Fri, 09 Jun 2006 15:00:47 GMT</pubDate></item></channel></rss>