<?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[Mehrfachen Programmstart verhindern]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich programmiere seit einiger Zeit einen Audioplayer und nun möchte ich gerne verhindern das das Programm mehrfach gestartet werden kann und am besten noch eine Info (Dateinamen) an das bereits geöffnete Programm schickt. Ich hoffe ihr könnt mir helfen.</p>
<p>gruß<br />
gus484</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121517/mehrfachen-programmstart-verhindern</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Jul 2026 04:09:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121517.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Sep 2005 12:30:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mehrfachen Programmstart verhindern on Sat, 24 Sep 2005 12:30:28 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich programmiere seit einiger Zeit einen Audioplayer und nun möchte ich gerne verhindern das das Programm mehrfach gestartet werden kann und am besten noch eine Info (Dateinamen) an das bereits geöffnete Programm schickt. Ich hoffe ihr könnt mir helfen.</p>
<p>gruß<br />
gus484</p>
]]></description><link>https://www.c-plusplus.net/forum/post/879075</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/879075</guid><dc:creator><![CDATA[gus484]]></dc:creator><pubDate>Sat, 24 Sep 2005 12:30:28 GMT</pubDate></item><item><title><![CDATA[Reply to Mehrfachen Programmstart verhindern on Sat, 24 Sep 2005 13:02:23 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>siehe <a href="http://www.bytesandmore.de/rad/index.htm?http://www.bytesandmore.de/rad/cpp/snipp/sc06014.php" rel="nofollow">hier</a></p>
<p>oder das BCB-Beispiel unter <em>&lt;BCB-Path&gt;\Examples\Controls\SingleInst</em></p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/879091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/879091</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 24 Sep 2005 13:02:23 GMT</pubDate></item><item><title><![CDATA[Reply to Mehrfachen Programmstart verhindern on Sat, 24 Sep 2005 13:24:10 GMT]]></title><description><![CDATA[<p>Danke ich werde es gleich mal ausprobieren</p>
]]></description><link>https://www.c-plusplus.net/forum/post/879101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/879101</guid><dc:creator><![CDATA[gus484]]></dc:creator><pubDate>Sat, 24 Sep 2005 13:24:10 GMT</pubDate></item><item><title><![CDATA[Reply to Mehrfachen Programmstart verhindern on Sun, 25 Sep 2005 18:15:54 GMT]]></title><description><![CDATA[<p>Ich habs mit der Lösung von bytesandmore probiert doch wenn ich den Beispiel Code Compiliere bekomme ich folgende Fehlermeldung:</p>
<p>[Linker Error] Unresolved external '_Form1' referenced from F:\DOKUMENTE UND EINSTELLUNGEN\ADMINISTRATOR\EIGENE DATEIEN\C++BORLAND\TEST2\PROJECT1.OBJ</p>
<p>[Linker Error] Unresolved external 'TForm1::' referenced from F:\DOKUMENTE UND EINSTELLUNGEN\ADMINISTRATOR\EIGENE DATEIEN\C++BORLAND\TEST2\PROJECT1.OBJ</p>
<p>Hier noch mal der gesamte Code</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
#include &lt;vcl.h&gt;
#pragma hdrstop

USERES(&quot;Projektname.res&quot;);
USEFORM(&quot;FormMain.cpp&quot;, frmMain);

//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
  try
  {

    // *************************************************************
    // Versuche Mutex zu öffnen:
    HANDLE hMutex = OpenMutex(MUTEX_ALL_ACCESS, 0, &quot;MeineAnwendung1.0&quot;);

    // Mutex-Handle ist 0, Mutex erzeugen:
    if (!hMutex)
      hMutex = CreateMutex(0, 0, &quot;MeineAnwendung1.0&quot;);
    else
    {
      // Dies ist die 2. Programminstanz. Die erste Instanz in 
      // Vordergrund bringen:
      HWND hWnd = FindWindow(0, &quot;FensterTitel&quot;);
      SetForegroundWindow(hWnd);

      // Meldung ggf. anzeigen:
      ShowMessage(&quot;Das Programm ist bereits aktiv. Es kann nicht erneut gestartet werden !&quot;);
      return 0;
    }
    // *************************************************************

    Application-&gt;Initialize();
    Application-&gt;CreateForm(__classid(TfrmMain), &amp;frmMain);
    Application-&gt;Run();

    // *************************************************************
    // Mutex wieder freigeben:
    ReleaseMutex(hMutex);
    // *************************************************************
  }
  catch (Exception &amp;exception)
  {
    Application-&gt;ShowException(&amp;exception);
  }
  return 0;
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/879901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/879901</guid><dc:creator><![CDATA[gus484]]></dc:creator><pubDate>Sun, 25 Sep 2005 18:15:54 GMT</pubDate></item><item><title><![CDATA[Reply to Mehrfachen Programmstart verhindern on Mon, 26 Sep 2005 06:04:03 GMT]]></title><description><![CDATA[<p>Hi, hatte den Fehler auch mal und hab ewigst gesucht, bis ich einfach mal die ganzen OBJ Datein usw. gelöscht habe und dann alles neu compilliert hab.</p>
<p>Viell. hilfts bei dir ja auch.</p>
<p>mfg<br />
Tom</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880131</guid><dc:creator><![CDATA[Tom7]]></dc:creator><pubDate>Mon, 26 Sep 2005 06:04:03 GMT</pubDate></item><item><title><![CDATA[Reply to Mehrfachen Programmstart verhindern on Mon, 26 Sep 2005 07:00:40 GMT]]></title><description><![CDATA[<p>Kann aber auch an dem Verzeichnisnamen liegen: 'C++Borland'<br />
Der BCB mag keine +-Zeichen in Verzeichnis- und Dateinamen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880163</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880163</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 26 Sep 2005 07:00:40 GMT</pubDate></item><item><title><![CDATA[Reply to Mehrfachen Programmstart verhindern on Mon, 26 Sep 2005 08:53:11 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Habs grad bei mir ausprobiert und hat Fehlerfrei gefunkt, also entweder liegst an den OBJ Datein oder wie JoeM gemeint hat an deinem Pfad, was ich aber eher nicht glaube da auch in meinem Pfad ein + bzw. ein - enthalten sind.</p>
<p>mfg<br />
Tom</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880234</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880234</guid><dc:creator><![CDATA[Tom7]]></dc:creator><pubDate>Mon, 26 Sep 2005 08:53:11 GMT</pubDate></item><item><title><![CDATA[Reply to Mehrfachen Programmstart verhindern on Mon, 26 Sep 2005 10:57:40 GMT]]></title><description><![CDATA[<p>gus484 schrieb:</p>
<blockquote>
<p>[Linker Error] Unresolved external '<strong>_Form1</strong>' referenced from F:\DOKUMENTE UND EINSTELLUNGEN\ADMINISTRATOR\EIGENE DATEIEN\C++BORLAND\TEST2\PROJECT1.OBJ</p>
<p>[Linker Error] Unresolved external '<strong>TForm1</strong>::' referenced from F:\DOKUMENTE UND EINSTELLUNGEN\ADMINISTRATOR\EIGENE DATEIEN\C++BORLAND\TEST2\PROJECT1.OBJ</p>
<p>Hier noch mal der gesamte Code</p>
<p>[cpp]//---------------------------------------------------------------------------<br />
#include &lt;vcl.h&gt;<br />
#pragma hdrstop</p>
<p>USERES(&quot;Projektname.res&quot;);<br />
USEFORM(&quot;<strong>FormMain.cpp</strong>&quot;, <strong>frmMain</strong>);</p>
</blockquote>
<p>Ob da wohl ein Zusammenhang besteht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/880325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/880325</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 26 Sep 2005 10:57:40 GMT</pubDate></item></channel></rss>