<?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[Anwendung zur Erweiterung finden.]]></title><description><![CDATA[<p>Wie kann ich am einfachsten eine Anwendung starten, die für eine bestimmte Dateierweiterung registriert ist, ohne das ich eine entsprechende Datei hab, die geöffnet werden soll?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/173539/anwendung-zur-erweiterung-finden</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 21:39:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/173539.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Feb 2007 21:03:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anwendung zur Erweiterung finden. on Fri, 16 Feb 2007 21:03:37 GMT]]></title><description><![CDATA[<p>Wie kann ich am einfachsten eine Anwendung starten, die für eine bestimmte Dateierweiterung registriert ist, ohne das ich eine entsprechende Datei hab, die geöffnet werden soll?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229823</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229823</guid><dc:creator><![CDATA[1000000]]></dc:creator><pubDate>Fri, 16 Feb 2007 21:03:37 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung zur Erweiterung finden. on Fri, 16 Feb 2007 21:31:52 GMT]]></title><description><![CDATA[<p>In der Registry nachschauen, welche Anwendung für den Dateityp registriert ist. Steht im Unterschlüssel HKEY_CLASSES_ROOT, ist in der WinAPI-Hilfe dokumentiert und auch mit dem Registrierungseditor leicht nachvollziehbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229851</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Fri, 16 Feb 2007 21:31:52 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung zur Erweiterung finden. on Sat, 17 Feb 2007 10:48:03 GMT]]></title><description><![CDATA[<p>Hatte ich schon befürchtet, dass das wieder so ein Registry gefrickel wird. Ne einfache Funktion in der WinAPI gibts da nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230013</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230013</guid><dc:creator><![CDATA[1000000]]></dc:creator><pubDate>Sat, 17 Feb 2007 10:48:03 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung zur Erweiterung finden. on Sat, 17 Feb 2007 10:54:16 GMT]]></title><description><![CDATA[<p>naja du kannst doch - so weit ich mich erinnere - einfach mit shellexcute die datei &quot;starten&quot; Dann sollte imho das prog geöffnet werden.</p>
<p>mfg tobZel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230016</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230016</guid><dc:creator><![CDATA[tobZel]]></dc:creator><pubDate>Sat, 17 Feb 2007 10:54:16 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung zur Erweiterung finden. on Sat, 17 Feb 2007 10:55:30 GMT]]></title><description><![CDATA[<p>Ja, aber ich hab die Datei nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230017</guid><dc:creator><![CDATA[1000000]]></dc:creator><pubDate>Sat, 17 Feb 2007 10:55:30 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung zur Erweiterung finden. on Sat, 17 Feb 2007 13:30:29 GMT]]></title><description><![CDATA[<p>1000000 schrieb:</p>
<blockquote>
<p>Ja, aber ich hab die Datei nicht.</p>
</blockquote>
<p>Dann erstelle eine leere Datei und gib der leeren Datei die entsprechende Endung :</p>
<pre><code class="language-cpp">// 1. Datei kann leer sein, hauptsache die Endung stimmt
// 2. Pfad und Dateiname müssen aber existieren

 unsigned char datei  [] = &quot;C:\\TEMP\\fake.txt&quot;;
 unsigned char pfad   [] = &quot;C:\\TEMP\\&quot;;
 unsigned char buffer [400]; // enthält nach Aufruf von FindExecutable () den Pfad und Name 
                             // des für diesen Dateityps registrierten Programms

 unsigned int  error     = (unsigned int) FindExecutable (datei,pfad,buffer);

 switch ( error ) {
  case  0 : { break; }  // &quot;system is out of memory or resources&quot;
  case  2 : { break; }  // ERROR_FILE_NOT_FOUND
  case  3 : { break; }  // ERROR_PATH_NOT_FOUND
  case 11 : { break; }  // ERROR_BAD_FORMAT
  case 31 : { break; }  // Dateierweiterung nicht registriert
  default : { WinExec (buffer,SW_SHOWNORMAL); break; } // sollte NOTEPAD starten
 }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1230079</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230079</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 17 Feb 2007 13:30:29 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung zur Erweiterung finden. on Sat, 17 Feb 2007 14:01:00 GMT]]></title><description><![CDATA[<p>Warum einfach, wenns auch umständlich geht?<br />
Außerdem hat die Anwendung vielleicht gar keine Schreibrechte in C:\TEMP <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230110</guid><dc:creator><![CDATA[audacia]]></dc:creator><pubDate>Sat, 17 Feb 2007 14:01:00 GMT</pubDate></item><item><title><![CDATA[Reply to Anwendung zur Erweiterung finden. on Sat, 17 Feb 2007 23:15:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/8276">@audacia</a>: Jo, seh ich genau so.</p>
<p>@merker:</p>
<p>MSDN zu WinExec schrieb:</p>
<blockquote>
<p><strong>Note:</strong> This function is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.</p>
</blockquote>
<p>Quelle: <a href="http://msdn2.microsoft.com/en-us/library/ms687393.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms687393.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1230371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1230371</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sat, 17 Feb 2007 23:15:44 GMT</pubDate></item></channel></rss>