<?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[open file dialog]]></title><description><![CDATA[<pre><code class="language-cpp">#include &quot;stdafx.h&quot; 
#include &quot;winsock2.h&quot; 
#include &quot;stdlib.h&quot; 

int APIENTRY WinMain(HINSTANCE hInstance, 
                     HINSTANCE hPrevInstance, 
                     LPSTR     lpCmdLine, 
                     int       nCmdShow) 
{ 

   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) 
   {
     // Winsock Initialisieren
   }

   return 0; 
}
</code></pre>
<p>muss ich da ein fenster erstellen? oder was mach i da falsch? das</p>
<pre><code class="language-cpp">ofn.hwndOwner = hwnd;
</code></pre>
<p>raff ich net ganz...</p>
<p>cu</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/82069/open-file-dialog</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 19:14:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/82069.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Aug 2004 11:12:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to open file dialog on Sat, 07 Aug 2004 11:12:37 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &quot;stdafx.h&quot; 
#include &quot;winsock2.h&quot; 
#include &quot;stdlib.h&quot; 

int APIENTRY WinMain(HINSTANCE hInstance, 
                     HINSTANCE hPrevInstance, 
                     LPSTR     lpCmdLine, 
                     int       nCmdShow) 
{ 

   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) 
   {
     // Winsock Initialisieren
   }

   return 0; 
}
</code></pre>
<p>muss ich da ein fenster erstellen? oder was mach i da falsch? das</p>
<pre><code class="language-cpp">ofn.hwndOwner = hwnd;
</code></pre>
<p>raff ich net ganz...</p>
<p>cu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/577336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/577336</guid><dc:creator><![CDATA[surf]]></dc:creator><pubDate>Sat, 07 Aug 2004 11:12:37 GMT</pubDate></item><item><title><![CDATA[Reply to open file dialog on Sat, 07 Aug 2004 13:51:30 GMT]]></title><description><![CDATA[<p>Da gibst du das Parent des Dialogs an. Dies ist normalerweise dein Haupt-Fenster - wenn du kein solches hast, kannst du aber auch einfach NULL angeben <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/577432</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/577432</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 07 Aug 2004 13:51:30 GMT</pubDate></item></channel></rss>