<?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[Datei mit Programm öffnen]]></title><description><![CDATA[<p>Ich habe meinem Programm eine Endung zugewiesen. Beim Doppelklick auf die datei versucht er es mit meinem Programm zu öffnen. Mein Programm weis aber nix damit anzufangen. Was kann ich tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/5661/datei-mit-programm-öffnen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 04:58:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/5661.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Apr 2003 08:25:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Datei mit Programm öffnen on Fri, 25 Apr 2003 08:25:00 GMT]]></title><description><![CDATA[<p>Ich habe meinem Programm eine Endung zugewiesen. Beim Doppelklick auf die datei versucht er es mit meinem Programm zu öffnen. Mein Programm weis aber nix damit anzufangen. Was kann ich tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27573</guid><dc:creator><![CDATA[?Help?]]></dc:creator><pubDate>Fri, 25 Apr 2003 08:25:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Fri, 25 Apr 2003 08:42:00 GMT]]></title><description><![CDATA[<p>Tach auch</p>
<p>Also wie jetzt?<br />
Du hast aus deiner exe was anderes gemacht und kannst es jetzt nicht mehr öffnen?<br />
Benenne die doch einfach wieder in *.exe (oder meintest du was anderes?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27574</guid><dc:creator><![CDATA[Michael_Bln]]></dc:creator><pubDate>Fri, 25 Apr 2003 08:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Fri, 25 Apr 2003 08:53:00 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Hast Du mal geschaut ob Du den Dateinamen in diesem Falle als Parameter bekommst ? (GetCommandLine)</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/20068">@Michael</a></p>
<p>Er möchte einen Dateityp mit seinem selbst geschriebenen Programm verknüpfen und die Datei damit öffnen. Eventuell kennst Du es unter &quot;Zeichenfolgen für Dokumentenvorlagen&quot; - aber ka wie man das nachträglich modifiziert / nachfügen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27575</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Fri, 25 Apr 2003 08:53:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Fri, 25 Apr 2003 11:48:00 GMT]]></title><description><![CDATA[<p>Ich habe es mal mit GetCommandline getestet da wird nix übergeben. Habt Ihr vieleicht noch eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27576</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27576</guid><dc:creator><![CDATA[?Help?]]></dc:creator><pubDate>Fri, 25 Apr 2003 11:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Fri, 25 Apr 2003 16:18:00 GMT]]></title><description><![CDATA[<p>Also wenn es sich um ein MFC Programm handelt das als SDI/MDI mit dem Assistenten erstellt wurde, dann wird am Anfang CDocument::Serialize() aufgerufen und die Datei übergeben, die doppelgecklickt wurde.</p>
<p>Sonst weiß ich auch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/27577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27577</guid><dc:creator><![CDATA[0x00000001]]></dc:creator><pubDate>Fri, 25 Apr 2003 16:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Fri, 25 Apr 2003 16:39:00 GMT]]></title><description><![CDATA[<p>du must ne -1 mit übergeben damit du den pfad bekommst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27578</guid><dc:creator><![CDATA[Lutz]]></dc:creator><pubDate>Fri, 25 Apr 2003 16:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Fri, 25 Apr 2003 16:40:00 GMT]]></title><description><![CDATA[<p>Kannst Du das mit der -1 näher erläutern ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27579</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Fri, 25 Apr 2003 16:40:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Fri, 25 Apr 2003 17:04:00 GMT]]></title><description><![CDATA[<p>So habe ich mein Programm mit einenem Dateiformat verbunden:</p>
<p>:</p>
<pre><code class="language-cpp">char ch_file[_MAX_PATH],ch_path[_MAX_PATH];
        GetModuleFileName(NULL, ch_file, _MAX_PATH);

        CString dir;
        dir.Format(&quot;%s&quot;,ch_file);
        dir += &quot; %1&quot;;

        lstrcpy(ch_path, ch_file);
        *_tcsrchr(ch_path, __TEXT('\\')) = 0;

        CRegKey key;
        key.Create(HKEY_CLASSES_ROOT,&quot;.abc&quot;,REG_NONE,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,NULL);
        key.SetValue(&quot;Test-Datein&quot; ,&quot;&quot;);
        key.Close();

        key.Create(HKEY_CLASSES_ROOT,&quot;Test-Datein&quot;,REG_NONE,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,NULL);
        key.SetValue(&quot;CCP-Profile&quot; ,&quot;&quot;);
        key.Close();

        key.Create(HKEY_CLASSES_ROOT,&quot;Test-Datein\\shell\\open\\command&quot;,REG_NONE,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,NULL);
        key.SetValue(dir ,&quot;&quot;);
        key.Close();

        key.Create(HKEY_CLASSES_ROOT,&quot;Test-Datein\\shell\\edit\\command&quot;,REG_NONE,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,NULL);
        key.SetValue(dir ,&quot;&quot;);
        key.Close();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/27580</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27580</guid><dc:creator><![CDATA[Dieter]]></dc:creator><pubDate>Fri, 25 Apr 2003 17:04:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Mon, 28 Apr 2003 07:44:00 GMT]]></title><description><![CDATA[<p>Stimmt hatte ich vergessen, es handelt sich um Kein SDI/MDI sondern um ein dialogbasierendes Programm.</p>
<p>-1 kann nicht sein da keine Parameter mit übergeben werden. GetCommandLine zeigt nichts an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27581</guid><dc:creator><![CDATA[?HELP?]]></dc:creator><pubDate>Mon, 28 Apr 2003 07:44:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Wed, 30 Apr 2003 13:14:00 GMT]]></title><description><![CDATA[<p>Hat keiner mehr eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27582</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27582</guid><dc:creator><![CDATA[?HELP?]]></dc:creator><pubDate>Wed, 30 Apr 2003 13:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Thu, 01 May 2003 00:04:00 GMT]]></title><description><![CDATA[<p>CString temp(GetCommandLine());<br />
MessageBox(temp,temp,NULL);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27583</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27583</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Thu, 01 May 2003 00:04:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Sun, 04 May 2003 13:21:00 GMT]]></title><description><![CDATA[<p>Ja macht das in die Instance deines Programms!!!</p>
<p>CCommandLineInfo cmdInfo;<br />
ParseCommandLine( cmdInfo );<br />
AfxMessageBox(cmdInfo.m_strFileName);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27584</guid><dc:creator><![CDATA[Sven Bechler]]></dc:creator><pubDate>Sun, 04 May 2003 13:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to Datei mit Programm öffnen on Mon, 05 May 2003 06:45:00 GMT]]></title><description><![CDATA[<p>GetCommandLine habe ich ausprobiert, da kommt aber nix zurück!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27585</guid><dc:creator><![CDATA[?HELP?]]></dc:creator><pubDate>Mon, 05 May 2003 06:45:00 GMT</pubDate></item></channel></rss>