<?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[Standart Dateiöffnen fester]]></title><description><![CDATA[<p>Hallo eine kleine frage gibt es eine Möglichkeit<br />
das Standart Dateiöffnen fester in meinem Programm einzubinden<br />
ich denk mal ihr wisst welches ich mein<br />
das ist das fenster welches meistsens erscheint wenn man eine datei öffnen bzw speichern will<br />
um einen Datei zu öffne<br />
Ich denck mal das dieses fenster als rückgabe wert den Dateipfad hat</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/216476/standart-dateiöffnen-fester</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 12:20:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/216476.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Jun 2008 14:43:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Standart Dateiöffnen fester on Tue, 24 Jun 2008 14:43:08 GMT]]></title><description><![CDATA[<p>Hallo eine kleine frage gibt es eine Möglichkeit<br />
das Standart Dateiöffnen fester in meinem Programm einzubinden<br />
ich denk mal ihr wisst welches ich mein<br />
das ist das fenster welches meistsens erscheint wenn man eine datei öffnen bzw speichern will<br />
um einen Datei zu öffne<br />
Ich denck mal das dieses fenster als rückgabe wert den Dateipfad hat</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1534859</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1534859</guid><dc:creator><![CDATA[dumkopf]]></dc:creator><pubDate>Tue, 24 Jun 2008 14:43:08 GMT</pubDate></item><item><title><![CDATA[Reply to Standart Dateiöffnen fester on Tue, 24 Jun 2008 15:21:35 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p><em>GetOpenFileName</em>: <a href="http://msdn.microsoft.com/en-us/library/ms646927.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms646927.aspx</a></p>
<p>MfG,</p>
<p>Probe-Nutzer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1534896</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1534896</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Tue, 24 Jun 2008 15:21:35 GMT</pubDate></item><item><title><![CDATA[Reply to Standart Dateiöffnen fester on Tue, 24 Jun 2008 16:03:42 GMT]]></title><description><![CDATA[<p>kannst du mir vll ein bsp. code zeigen?<br />
ich bekomm das gerade nicht hin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1534913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1534913</guid><dc:creator><![CDATA[dumkopf]]></dc:creator><pubDate>Tue, 24 Jun 2008 16:03:42 GMT</pubDate></item><item><title><![CDATA[Reply to Standart Dateiöffnen fester on Tue, 24 Jun 2008 16:10:58 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/ms646829(VS.85).aspx#open_file" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms646829(VS.85).aspx#open_file</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1534918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1534918</guid><dc:creator><![CDATA[omg]]></dc:creator><pubDate>Tue, 24 Jun 2008 16:10:58 GMT</pubDate></item><item><title><![CDATA[Reply to Standart Dateiöffnen fester on Tue, 24 Jun 2008 16:11:07 GMT]]></title><description><![CDATA[<p>dumkopf schrieb:</p>
<blockquote>
<p>kannst du mir vll ein bsp. code zeigen?<br />
ich bekomm das gerade nicht hin</p>
</blockquote>
<p>Wenn Du Dir die verlinkte Seite geöffnet und bis zum Ende durchgelesen hättest, dann wäre Dir vermutlich der <a href="http://msdn.microsoft.com/en-us/library/ms646829.aspx" rel="nofollow">Beispiellink</a> nicht entgangen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1534919</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1534919</guid><dc:creator><![CDATA[sri]]></dc:creator><pubDate>Tue, 24 Jun 2008 16:11:07 GMT</pubDate></item><item><title><![CDATA[Reply to Standart Dateiöffnen fester on Tue, 24 Jun 2008 16:47:43 GMT]]></title><description><![CDATA[<p>hab zwar dies hier gefunden aber ich weiß net genau wie ich das einbauen soll</p>
<pre><code class="language-cpp">OPENFILENAME ofn;       // common dialog box structure
char szFile[260];       // buffer for file name
HWND hwnd;              // owner window
HANDLE hf;              // file handle

// Initialize OPENFILENAME
ZeroMemory(&amp;ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = hwnd;
ofn.lpstrFile = szFile;
// Set lpstrFile[0] to '\0' so that GetOpenFileName does not 
// use the contents of szFile to initialize itself.
ofn.lpstrFile[0] = '\0';
ofn.nMaxFile = sizeof(szFile);
ofn.lpstrFilter = &quot;All\0*.*\0Text\0*.TXT\0&quot;;
ofn.nFilterIndex = 1;
ofn.lpstrFileTitle = NULL;
ofn.nMaxFileTitle = 0;
ofn.lpstrInitialDir = NULL;
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;

// Display the Open dialog box. 

if (GetOpenFileName(&amp;ofn)==TRUE) 
    hf = CreateFile(ofn.lpstrFile, 
                    GENERIC_READ,
                    0,
                    (LPSECURITY_ATTRIBUTES) NULL,
                    OPEN_EXISTING,
                    FILE_ATTRIBUTE_NORMAL,
                    (HANDLE) NULL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1534944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1534944</guid><dc:creator><![CDATA[dumkopf]]></dc:creator><pubDate>Tue, 24 Jun 2008 16:47:43 GMT</pubDate></item><item><title><![CDATA[Reply to Standart Dateiöffnen fester on Tue, 24 Jun 2008 19:15:37 GMT]]></title><description><![CDATA[<p>ändere mal die letzen zeilen in</p>
<pre><code class="language-cpp">if (GetOpenFileName(&amp;ofn))
{
    // pfad liegt in szFile
}
else
    // benutzer hat auf abbrechen gedrückt
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1535033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1535033</guid><dc:creator><![CDATA[helferlein]]></dc:creator><pubDate>Tue, 24 Jun 2008 19:15:37 GMT</pubDate></item><item><title><![CDATA[Reply to Standart Dateiöffnen fester on Tue, 24 Jun 2008 19:46:38 GMT]]></title><description><![CDATA[<p>Das bringt ihn wohl auch nicht weiter ;)... ich glaube er weiß nicht, wo er das Code Snippt einfügen soll.</p>
<p>-&gt; Am besten dort, wo du einen Open-File-Dialog brauchst <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="😉"
    /><br />
am besten lagerst du den Code in eine extra Funktion aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1535054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1535054</guid><dc:creator><![CDATA[Xantus]]></dc:creator><pubDate>Tue, 24 Jun 2008 19:46:38 GMT</pubDate></item></channel></rss>