<?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[GetOpenFileName schreibt einfach nichts in lpstrFile!]]></title><description><![CDATA[<p>Hallo!</p>
<p>Folgender Code:</p>
<pre><code class="language-cpp">case IDM_SAVE:
 OPENFILENAME ofn;
 ZeroMemory(&amp;ofn, sizeof(ofn));
 ofn.lStructSize=	sizeof(ofn);
 ofn.hwndOwner=	hWnd;
 ofn.hInstance=	NULL;
 ofn.lpstrFilter=	&quot;DDS Images\0*.dds\0\0&quot;;	
 ofn.nMaxFile=	MAX_PATH;
 if(GetOpenFileName(&amp;ofn))
 {
    MessageBox(0,ofn.lpstrFile,&quot;&quot;,0);
 }
 break;
</code></pre>
<p>Kann mir jemand sagen, warum mir die MessageBox nie etwas anzeigt bzw. lpstrFile immer leer zu sein scheint? Wäre ne super Sache <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>Gruß veryxRV</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182828/getopenfilename-schreibt-einfach-nichts-in-lpstrfile</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 08:38:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182828.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 May 2007 17:01:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetOpenFileName schreibt einfach nichts in lpstrFile! on Tue, 29 May 2007 17:03:08 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Folgender Code:</p>
<pre><code class="language-cpp">case IDM_SAVE:
 OPENFILENAME ofn;
 ZeroMemory(&amp;ofn, sizeof(ofn));
 ofn.lStructSize=	sizeof(ofn);
 ofn.hwndOwner=	hWnd;
 ofn.hInstance=	NULL;
 ofn.lpstrFilter=	&quot;DDS Images\0*.dds\0\0&quot;;	
 ofn.nMaxFile=	MAX_PATH;
 if(GetOpenFileName(&amp;ofn))
 {
    MessageBox(0,ofn.lpstrFile,&quot;&quot;,0);
 }
 break;
</code></pre>
<p>Kann mir jemand sagen, warum mir die MessageBox nie etwas anzeigt bzw. lpstrFile immer leer zu sein scheint? Wäre ne super Sache <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>Gruß veryxRV</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294672</guid><dc:creator><![CDATA[veryxRV]]></dc:creator><pubDate>Tue, 29 May 2007 17:03:08 GMT</pubDate></item><item><title><![CDATA[Reply to GetOpenFileName schreibt einfach nichts in lpstrFile! on Tue, 29 May 2007 17:29:56 GMT]]></title><description><![CDATA[<p>Du musst lpstrFile auch mit einem Zeiger auf einen gültigen Speicherbereich initialisieren, siehe hier: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-182548.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-182548.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294689</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 29 May 2007 17:29:56 GMT</pubDate></item><item><title><![CDATA[Reply to GetOpenFileName schreibt einfach nichts in lpstrFile! on Tue, 29 May 2007 17:48:15 GMT]]></title><description><![CDATA[<p>Achso! Wunderbar, danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294700</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294700</guid><dc:creator><![CDATA[veryxRV]]></dc:creator><pubDate>Tue, 29 May 2007 17:48:15 GMT</pubDate></item></channel></rss>