<?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[Hilfe - wie krieg ich die Variable von a nach b]]></title><description><![CDATA[<p>Hi,<br />
ich habe einige Variablen aufwendig berechnet. Jetzt möchte ich diese gern von der Methode in einen Time übertragen. Wie mach ich das am besten? Ich dachte mir irgendwie über zeiger. Habs aber nicht geschafft.<br />
Danke schon mal!</p>
<p>mfg<br />
TDK</p>
<p>Edit:Noch ne Frage nebenbei: wie schaff ich es wenn ich die zeit audgebe das nicht 3:3:3 steht sondern 3:03:03</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/195816/hilfe-wie-krieg-ich-die-variable-von-a-nach-b</link><generator>RSS for Node</generator><lastBuildDate>Mon, 29 Jun 2026 19:50:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/195816.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Oct 2007 09:55:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 11:23:56 GMT]]></title><description><![CDATA[<p>Hi,<br />
ich habe einige Variablen aufwendig berechnet. Jetzt möchte ich diese gern von der Methode in einen Time übertragen. Wie mach ich das am besten? Ich dachte mir irgendwie über zeiger. Habs aber nicht geschafft.<br />
Danke schon mal!</p>
<p>mfg<br />
TDK</p>
<p>Edit:Noch ne Frage nebenbei: wie schaff ich es wenn ich die zeit audgebe das nicht 3:3:3 steht sondern 3:03:03</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389819</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389819</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Mon, 22 Oct 2007 11:23:56 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 12:14:36 GMT]]></title><description><![CDATA[<p>TDK schrieb:</p>
<blockquote>
<p>Hi,<br />
ich habe einige Variablen aufwendig berechnet. Jetzt möchte ich diese gern von der Methode in einen Time übertragen.</p>
</blockquote>
<p>Könntest du das bitte nochmal verständlich formulieren? Geht's dir darum, die Dauer der Berechnung zu messen?</p>
<p>TDK schrieb:</p>
<blockquote>
<p>Edit:Noch ne Frage nebenbei: wie schaff ich es wenn ich die zeit audgebe das nicht 3:3:3 steht sondern 3:03:03</p>
</blockquote>
<p>ZB mit Formatflags:</p>
<pre><code class="language-cpp">printf(&quot;%02d:%02d:%02d&quot;, stunde, minute, sekunde);
</code></pre>
<p>Dazu müssten wir aber erstmal wissen, wie du es momentan machst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389909</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Mon, 22 Oct 2007 12:14:36 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 12:19:18 GMT]]></title><description><![CDATA[<p>ich wollte timer schreiben^^. das mit den 0er hinzufügen müsste bei dieser zeile reingehen</p>
<pre><code class="language-cpp">labelTimeNow-&gt;Text = &quot;&quot; + jetzt-&gt;tm_hour + &quot; : &quot; + jetzt-&gt;tm_min+  &quot; : &quot; + jetzt-&gt;tm_sec;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1389910</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389910</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Mon, 22 Oct 2007 12:19:18 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 12:21:26 GMT]]></title><description><![CDATA[<p>Was für einen Typ hat denn Text? (bei CString's könntest du Format() verwenden, bei std::string würde ich über einen stringstream gehen)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389912</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389912</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 22 Oct 2007 12:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 12:28:21 GMT]]></title><description><![CDATA[<p>ist ein system::string</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389918</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Mon, 22 Oct 2007 12:28:21 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 12:37:17 GMT]]></title><description><![CDATA[<p>TDK schrieb:</p>
<blockquote>
<p>ist ein system::string</p>
</blockquote>
<p>Wessen System denn?<br />
(sprich: Was für einen Compiler verwendest du?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389927</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 22 Oct 2007 12:37:17 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 12:42:14 GMT]]></title><description><![CDATA[<p>vs 2005</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389930</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Mon, 22 Oct 2007 12:42:14 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 13:05:42 GMT]]></title><description><![CDATA[<p>er meint sicher std::string</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389952</guid><dc:creator><![CDATA[Listing]]></dc:creator><pubDate>Mon, 22 Oct 2007 13:05:42 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 13:31:20 GMT]]></title><description><![CDATA[<p>Oder er meint &quot;System.String&quot; (.NET Framework, C++/CLI).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389982</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Mon, 22 Oct 2007 13:31:20 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 14:13:52 GMT]]></title><description><![CDATA[<p>angezeigt wird aber System::String</p>
<p>Edit: Ok. System.String.<br />
System::String zeigt er an wenn ich drauf fahre und oben steht System.String</p>
<p>Edit2: Noch was - geht es mit einem #ifdef befehl zwischen xp und vista zu unterscheiden? oder wie soll ich das sonst machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1389997</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1389997</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Mon, 22 Oct 2007 14:13:52 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 14:23:22 GMT]]></title><description><![CDATA[<p>TDK schrieb:</p>
<blockquote>
<p>Edit2: Noch was - geht es mit einem #ifdef befehl zwischen xp und vista zu unterscheiden? oder wie soll ich das sonst machen?</p>
</blockquote>
<p>Präprozessor-Makros kenne ich keine - aber eventuell hilft GetVersionEx() weiter bei der Auswahl (XP liefert MajorVersion 5, Vista 6).</p>
<p><a href="https://www.google.de/search?&amp;q=site%3Amsdn.microsoft.com%20GetVersionEx" rel="nofollow">Google: site:msdn.microsoft.com GetVersionEx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390021</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 22 Oct 2007 14:23:22 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 14:47:44 GMT]]></title><description><![CDATA[<p>GetVersionEx() is leider noch zu hoch für mich. versteh ich nicht. gibtsne andere möglichkeit?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390038</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390038</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Mon, 22 Oct 2007 14:47:44 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 15:03:37 GMT]]></title><description><![CDATA[<p>Was verstehst du daran denn nicht?<br />
Und nutzt du überhaupt WinApi? Ich hab überhaupt nicht verstanden was du hier für Probleme hattest <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390049</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Mon, 22 Oct 2007 15:03:37 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 15:22:37 GMT]]></title><description><![CDATA[<p>ja ich verwende ne normale windows form application. frag mich nit was genau - scheint so die mods würden es auch nicht wissen denn ich werde immer zwischen WinAPI und CLI hin und her geschoben^^.<br />
Mein Problem war:<br />
Ich möchte gerne einige Variablen von einer eigenen Methode in eine Timer Methode bringen. Sprich die Variablen von a nach b (mit den Werten^^ sonst hätte es ja keinen sinn)<br />
bezüglich GetVersionEx()<br />
wenn dass gemeint ist:<br />
<a href="http://msdn2.microsoft.com/en-us/library/ms724451.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms724451.aspx</a><br />
hab ich keine ahnung was ich machen soll!<br />
dann war da noch wegen der Zeit:<br />
ich möchte gerne 3:3:3 so aussehen lassen : 3:03:03<br />
sprich wenn nur einstellig nen 0er davor!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390055</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Mon, 22 Oct 2007 15:22:37 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 15:25:27 GMT]]></title><description><![CDATA[<p>Also so wie ich das sehe benutzt du kein WinApi sondern die WinForms. Und anscheinend mischt du das immermal mit WinApi. Das solltest du sein lassen und WinApi nur nutzen wenn es nix in deinem Framework gibt!<br />
Also zu dem ersten Problem kann ich dir nicht viel sagen weil ich mit mit WinForms nicht auskenne. Aber vielleicht hilft dir ja ne globale Variable.<br />
Wie gesagt schau ob es ein Funktion wie GetVerseionEx in WinForms gibt und benutze die wenn nicht was verstehst du an diesem Link nicht da ist doch alles erklärt und sogar ein Bsp. bei!<br />
Und zu deinem anderen Problem wurde doch schon eine Lösung geschrieben.</p>
<p>schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390060</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Mon, 22 Oct 2007 15:25:27 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 15:29:31 GMT]]></title><description><![CDATA[<p>wenn mir jemand sagt wo der unterschied zwischen den untersprachen ist <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="🙄"
    /><br />
und was war das mit dem 0er? da kam doch die frage auf ob es ein system.string oder was auch immer ist.<br />
Gibts hier keinen allrounder der mir mal per icq zur seite stehen könnte oder so? das buch was ich hab erklärt halt auch nicht alles.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390064</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Mon, 22 Oct 2007 15:29:31 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 19:24:06 GMT]]></title><description><![CDATA[<p>Naja Untersprachen ist schlecht ausgedrückt. Also WinApi ist sogesehen pur Windows. In der User32.dll oder kernel32.dll (oder wie die alle heißen) sind halt die Funktionen von der WinApi drin. Das heist WinApi ist die unterste Ebene zum Programmieren. (Was ich jetzt zu Winforms sage ist keine Garantie kenn mich damit nicht aus!)<br />
Winforms (ähnlich wie MfC) kapselt die WinApi in ein Framework, also in Klassen. Wenn du ein gutes Framework hast solltest du alle Funktionen aus der WinApi dort wiederfinden. Aber z.B. in VB6 greift man öfter mal auf die WinApi zurück weil man in VB nicht alles so hat.<br />
So vielleicht hilft dir das erstmal ein bisschen weiter. Jetzt wieder zu deinen Problemen. Als das mit den 0. Guck mal nach ob du bei deinem System.String eine Funktion/Methode/wieauchimmerdasbeidirheist hast die Format heißt. Dann kannst du mit den formatangaben deinen String formatieren (wie das eine bsp. hier im Thread). Wie gesagt entweder gibt es was bei dir wie GetVersionEx oder du musst auf die WinApi zurückgreifen und dir das Bsp. anschauen.</p>
<p>MfG schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390196</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Mon, 22 Oct 2007 19:24:06 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 19:46:29 GMT]]></title><description><![CDATA[<p>meinste das:</p>
<blockquote>
<p>printf(&quot;%02d:%02d:%02d&quot;, stunde, minute, sekunde);</p>
</blockquote>
<p>zum GetVersionEx : was müsste ich bei</p>
<pre><code>__inout LPOSVERSIONINFOA lpVersionsInformation
</code></pre>
<p>oder</p>
<pre><code>__inout LPOSVERSIONSINFOW lpVersionsInformatoin
</code></pre>
<p>eingeben? (das schlägt vs vor das ich eingeben soll - hab keine ahnung was das sein sollte!)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390208</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390208</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Mon, 22 Oct 2007 19:46:29 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Mon, 22 Oct 2007 19:54:25 GMT]]></title><description><![CDATA[<p>1.) Ja das meinte ich. Guck ob es eine Funktion namens Format oder so gibt wenn nicht musst du auf c++ oder so zurückgreifen. Findet sich auf jeden Fall was <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
2.) Da ist doch ein Bsp. <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="😉"
    /> und wenn dir das nicht reicht dann guck dir das an. Da ist eigentlich jede Windowsversion aufgeführt <a href="http://msdn2.microsoft.com/en-us/library/ms724429.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms724429.aspx</a></p>
<p>schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390216</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Mon, 22 Oct 2007 19:54:25 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Tue, 23 Oct 2007 09:12:41 GMT]]></title><description><![CDATA[<p>habs jetzt geschafft (bis auf ein problem bei den domainupdown und das mit dem 0er) nur kann es mein freund auf seinen computer nicht ausführen! er hat selbst vs aber nur für c# (keine ahnung wie genau das jetzt heißt). ich hab das programm released und im die released exe gegeben.<br />
nur kann er es nicht ausführen! an was kann das liegen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390411</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390411</guid><dc:creator><![CDATA[TDK]]></dc:creator><pubDate>Tue, 23 Oct 2007 09:12:41 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Tue, 23 Oct 2007 09:38:21 GMT]]></title><description><![CDATA[<p>Vermutlich daran, daß er &quot;kein C# hat&quot; - .NET Programme (C#, C++/CLI etc) benötigen eine eigene Laufzeitumgebung, um arbeiten zu können. Es ist zwar eventuell ein Schritt nach hinten, aber im Notfall mußt du auf .NET verzichten und die MFC nutzen.</p>
<p>(und bei MFC's CString gibt es eine Methode Format(), mit der du im (s)printf()-Stil Strings zusammenbauen kannst)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390426</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 23 Oct 2007 09:38:21 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Tue, 23 Oct 2007 11:46:31 GMT]]></title><description><![CDATA[<p>doch er hat c# - ok ich werd ihm sagen er soll noch mal brav .net installn^^ oder hab ich das jetzt falsch verstanden von dir?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390488</guid><dc:creator><![CDATA[TDK-zu faul zum andmelden]]></dc:creator><pubDate>Tue, 23 Oct 2007 11:46:31 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Tue, 23 Oct 2007 11:57:07 GMT]]></title><description><![CDATA[<p>Ups, da hatte ich etwas falsch verstanden. (und C# installiert afair das .NET Framework gleich mit). Aber ich glaube, du solltest mal darauf warten, daß der Thread ins C++/CLI-Board verschoben wird, dort dürfte eher eine Lösung zu finden sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390499</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390499</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 23 Oct 2007 11:57:07 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Tue, 23 Oct 2007 14:45:55 GMT]]></title><description><![CDATA[<blockquote>
<p>Noch was - geht es mit einem #ifdef befehl zwischen xp und vista zu unterscheiden? oder wie soll ich das sonst machen?</p>
</blockquote>
<p>Ja, das geht.</p>
<p>Für XP ist das hier definiert:<br />
WINVER=0x0501</p>
<p>Für Vista:<br />
WINVER=0x0600</p>
<p><a href="http://msdn2.microsoft.com/en-us/library/aa383745.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/aa383745.aspx</a><br />
HTH<br />
rya.</p>
<p>edit: heut ist nicht mein tag.. der thread hat ja 3 seiten.. -.- egal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":P"
      alt="😛"
    /> hab nur die erste gelesen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1390614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1390614</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Tue, 23 Oct 2007 14:45:55 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe - wie krieg ich die Variable von a nach b on Wed, 24 Oct 2007 18:04:19 GMT]]></title><description><![CDATA[<p>Mittlerweile fühl ich mich nicht mehr so gut bei den gedanken an c++^^<br />
wieder ein problem besser gesagt zwei<br />
1)<br />
scorcher24 hat mir ein prog empfohlen mit dem man die gebrauchten dll's herausfindet<br />
hab geschaut<br />
aber mein freund hat alle die<br />
der einzigeunterschied ist das er xp und ich vista hab<br />
2)<br />
also<br />
wenn ich mein programm mit vs debugge geht es normal.<br />
wenn ich die released exe ausführe bekomm ich immer eine fehlermeldung<br />
scorcher meinte den code hier rein, vllt erkennt ja von euch einer was:</p>
<pre><code>#pragma once
#include &lt;ctime&gt;

namespace WindowsZeitausschalter {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// &lt;summary&gt;
	/// Summary for Form1
	///
	/// WARNING: If you change the name of this class, you will need to change the
	///          'Resource File Name' property for the managed resource compiler tool
	///          associated with all .resx files this class depends on.  Otherwise,
	///          the designers will not be able to interact properly with localized
	///          resources associated with this form.
	/// &lt;/summary&gt;
	int dayEnd;
	int hourEnd;
	int minEnd;
	int secEnd;
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}
		void TimeRenew(void){
			std::time_t Zeit;
			std::tm *jetzt;
			Zeit = std::time(0);
			jetzt = std::localtime(&amp;Zeit);
			labelTimeNow-&gt;Text = &quot;&quot; + jetzt-&gt;tm_hour + &quot; : &quot; + jetzt-&gt;tm_min+  &quot; : &quot; + jetzt-&gt;tm_sec;
		}
		void TimeCalculate(int hour, int min, int sec){
			std::time_t Zeit;
			std::tm *jetzt;
			Zeit = std::time(0);
			jetzt = std::localtime(&amp;Zeit);
			dayEnd = jetzt-&gt;tm_mday;
			hourEnd = hour + jetzt-&gt;tm_hour;
			minEnd = min + jetzt-&gt;tm_min;
			secEnd = sec + jetzt-&gt;tm_sec;
			while(secEnd &gt;= 60){
				minEnd = minEnd + 1;
				secEnd = secEnd - 60;				
			}
			while(minEnd &gt;= 60){
				hourEnd = hourEnd + 1;
				minEnd = minEnd - 60;
			}
			labelTimeOut-&gt;Text = hourEnd + &quot;:&quot; + minEnd + &quot;:&quot; + secEnd;
			if (hourEnd &gt;= 24)
			{
				hourEnd = hour - 24;
				int dayEnd = jetzt-&gt;tm_mday + 1;
			}
			int *ptrday = &amp;dayEnd;
			int *ptrsec = &amp;secEnd;
			int *ptrmin = &amp;minEnd;
			int *ptrhour = &amp;hourEnd;
		}
	protected:
		/// &lt;summary&gt;
		/// Clean up any resources being used.
		/// &lt;/summary&gt;
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::TextBox^  textBoxHour;
	private: System::Windows::Forms::TextBox^  textBoxMinute;
	private: System::Windows::Forms::TextBox^  textBoxSecond;

	private: System::Windows::Forms::Label^  label2;
	private: System::Windows::Forms::Label^  label3;
	private: System::Windows::Forms::Label^  label4;
	private: System::Windows::Forms::Label^  label5;
	private: System::Windows::Forms::Button^  buttonTimer;
	private: System::Windows::Forms::Button^  buttonTime;
	private: System::Windows::Forms::DomainUpDown^  domainUpDownHour;
	private: System::Windows::Forms::DomainUpDown^  domainUpDownMinute;
	private: System::Windows::Forms::DomainUpDown^  domainUpDownSecond;

	private: System::Windows::Forms::Label^  label6;
	private: System::Windows::Forms::Label^  label7;
	private: System::Windows::Forms::Label^  label8;
	private: System::Windows::Forms::Label^  labelTimeNow;
	private: System::Windows::Forms::Label^  labelTimeOut;
	private: System::Windows::Forms::Label^  label9;
	private: System::Windows::Forms::Timer^  timer1;
	private: System::Windows::Forms::Timer^  timer2;
	private: System::Windows::Forms::Timer^  timer3;
	private: System::Windows::Forms::Button^  buttonStop;
	private: System::ComponentModel::IContainer^  components;

	protected: 

	private:
		/// &lt;summary&gt;
		/// Required designer variable.
		/// &lt;/summary&gt;

#pragma region Windows Form Designer generated code
		/// &lt;summary&gt;
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// &lt;/summary&gt;
		void InitializeComponent(void)
		{
			this-&gt;components = (gcnew System::ComponentModel::Container());
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
			this-&gt;label1 = (gcnew System::Windows::Forms::Label());
			this-&gt;textBoxHour = (gcnew System::Windows::Forms::TextBox());
			this-&gt;textBoxMinute = (gcnew System::Windows::Forms::TextBox());
			this-&gt;textBoxSecond = (gcnew System::Windows::Forms::TextBox());
			this-&gt;label2 = (gcnew System::Windows::Forms::Label());
			this-&gt;label3 = (gcnew System::Windows::Forms::Label());
			this-&gt;label4 = (gcnew System::Windows::Forms::Label());
			this-&gt;label5 = (gcnew System::Windows::Forms::Label());
			this-&gt;buttonTimer = (gcnew System::Windows::Forms::Button());
			this-&gt;buttonTime = (gcnew System::Windows::Forms::Button());
			this-&gt;domainUpDownHour = (gcnew System::Windows::Forms::DomainUpDown());
			this-&gt;domainUpDownMinute = (gcnew System::Windows::Forms::DomainUpDown());
			this-&gt;domainUpDownSecond = (gcnew System::Windows::Forms::DomainUpDown());
			this-&gt;label6 = (gcnew System::Windows::Forms::Label());
			this-&gt;label7 = (gcnew System::Windows::Forms::Label());
			this-&gt;label8 = (gcnew System::Windows::Forms::Label());
			this-&gt;labelTimeNow = (gcnew System::Windows::Forms::Label());
			this-&gt;labelTimeOut = (gcnew System::Windows::Forms::Label());
			this-&gt;label9 = (gcnew System::Windows::Forms::Label());
			this-&gt;timer1 = (gcnew System::Windows::Forms::Timer(this-&gt;components));
			this-&gt;timer2 = (gcnew System::Windows::Forms::Timer(this-&gt;components));
			this-&gt;timer3 = (gcnew System::Windows::Forms::Timer(this-&gt;components));
			this-&gt;buttonStop = (gcnew System::Windows::Forms::Button());
			this-&gt;SuspendLayout();
			// 
			// label1
			// 
			this-&gt;label1-&gt;AutoSize = true;
			this-&gt;label1-&gt;Location = System::Drawing::Point(12, 44);
			this-&gt;label1-&gt;Name = L&quot;label1&quot;;
			this-&gt;label1-&gt;Size = System::Drawing::Size(62, 13);
			this-&gt;label1-&gt;TabIndex = 0;
			this-&gt;label1-&gt;Text = L&quot;Nach Timer&quot;;
			// 
			// textBoxHour
			// 
			this-&gt;textBoxHour-&gt;Location = System::Drawing::Point(15, 61);
			this-&gt;textBoxHour-&gt;Name = L&quot;textBoxHour&quot;;
			this-&gt;textBoxHour-&gt;Size = System::Drawing::Size(70, 20);
			this-&gt;textBoxHour-&gt;TabIndex = 1;
			// 
			// textBoxMinute
			// 
			this-&gt;textBoxMinute-&gt;Location = System::Drawing::Point(107, 61);
			this-&gt;textBoxMinute-&gt;Name = L&quot;textBoxMinute&quot;;
			this-&gt;textBoxMinute-&gt;Size = System::Drawing::Size(70, 20);
			this-&gt;textBoxMinute-&gt;TabIndex = 2;
			// 
			// textBoxSecond
			// 
			this-&gt;textBoxSecond-&gt;Location = System::Drawing::Point(199, 61);
			this-&gt;textBoxSecond-&gt;Name = L&quot;textBoxSecond&quot;;
			this-&gt;textBoxSecond-&gt;Size = System::Drawing::Size(70, 20);
			this-&gt;textBoxSecond-&gt;TabIndex = 3;
			// 
			// label2
			// 
			this-&gt;label2-&gt;AutoSize = true;
			this-&gt;label2-&gt;Location = System::Drawing::Point(91, 64);
			this-&gt;label2-&gt;Name = L&quot;label2&quot;;
			this-&gt;label2-&gt;Size = System::Drawing::Size(10, 13);
			this-&gt;label2-&gt;TabIndex = 7;
			this-&gt;label2-&gt;Text = L&quot;:&quot;;
			// 
			// label3
			// 
			this-&gt;label3-&gt;AutoSize = true;
			this-&gt;label3-&gt;Location = System::Drawing::Point(183, 64);
			this-&gt;label3-&gt;Name = L&quot;label3&quot;;
			this-&gt;label3-&gt;Size = System::Drawing::Size(10, 13);
			this-&gt;label3-&gt;TabIndex = 8;
			this-&gt;label3-&gt;Text = L&quot;:&quot;;
			// 
			// label4
			// 
			this-&gt;label4-&gt;AutoSize = true;
			this-&gt;label4-&gt;Location = System::Drawing::Point(91, 137);
			this-&gt;label4-&gt;Name = L&quot;label4&quot;;
			this-&gt;label4-&gt;Size = System::Drawing::Size(10, 13);
			this-&gt;label4-&gt;TabIndex = 9;
			this-&gt;label4-&gt;Text = L&quot;:&quot;;
			// 
			// label5
			// 
			this-&gt;label5-&gt;AutoSize = true;
			this-&gt;label5-&gt;Location = System::Drawing::Point(183, 137);
			this-&gt;label5-&gt;Name = L&quot;label5&quot;;
			this-&gt;label5-&gt;Size = System::Drawing::Size(10, 13);
			this-&gt;label5-&gt;TabIndex = 10;
			this-&gt;label5-&gt;Text = L&quot;:&quot;;
			// 
			// buttonTimer
			// 
			this-&gt;buttonTimer-&gt;Location = System::Drawing::Point(242, 87);
			this-&gt;buttonTimer-&gt;Name = L&quot;buttonTimer&quot;;
			this-&gt;buttonTimer-&gt;Size = System::Drawing::Size(75, 23);
			this-&gt;buttonTimer-&gt;TabIndex = 11;
			this-&gt;buttonTimer-&gt;Text = L&quot;Start&quot;;
			this-&gt;buttonTimer-&gt;UseVisualStyleBackColor = true;
			this-&gt;buttonTimer-&gt;Click += gcnew System::EventHandler(this, &amp;Form1::buttonTimer_Click);
			// 
			// buttonTime
			// 
			this-&gt;buttonTime-&gt;Location = System::Drawing::Point(242, 163);
			this-&gt;buttonTime-&gt;Name = L&quot;buttonTime&quot;;
			this-&gt;buttonTime-&gt;Size = System::Drawing::Size(75, 23);
			this-&gt;buttonTime-&gt;TabIndex = 12;
			this-&gt;buttonTime-&gt;Text = L&quot;Start&quot;;
			this-&gt;buttonTime-&gt;UseVisualStyleBackColor = true;
			this-&gt;buttonTime-&gt;Click += gcnew System::EventHandler(this, &amp;Form1::buttonTime_Click);
			// 
			// domainUpDownHour
			// 
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;0&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;23&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;22&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;21&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;20&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;19&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;18&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;17&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;16&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;15&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;14&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;13&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;12&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;11&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;10&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;9&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;8&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;7&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;6&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;5&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;4&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;3&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;2&quot;);
			this-&gt;domainUpDownHour-&gt;Items-&gt;Add(L&quot;1&quot;);
			this-&gt;domainUpDownHour-&gt;Location = System::Drawing::Point(15, 135);
			this-&gt;domainUpDownHour-&gt;Name = L&quot;domainUpDownHour&quot;;
			this-&gt;domainUpDownHour-&gt;Size = System::Drawing::Size(70, 20);
			this-&gt;domainUpDownHour-&gt;TabIndex = 13;
			// 
			// domainUpDownMinute
			// 
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;0&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;59&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;58&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;57&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;56&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;55&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;54&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;53&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;52&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;51&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;50&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;49&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;48&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;47&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;46&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;45&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;44&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;43&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;42&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;41&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;40&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;39&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;38&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;37&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;36&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;35&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;34&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;33&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;32&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;31&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;30&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;29&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;28&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;27&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;26&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;25&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;24&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;23&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;22&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;21&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;20&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;19&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;18&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;17&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;16&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;15&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;14&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;13&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;12&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;11&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;10&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;9&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;8&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;7&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;6&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;5&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;4&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;3&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;2&quot;);
			this-&gt;domainUpDownMinute-&gt;Items-&gt;Add(L&quot;1&quot;);
			this-&gt;domainUpDownMinute-&gt;Location = System::Drawing::Point(107, 135);
			this-&gt;domainUpDownMinute-&gt;Name = L&quot;domainUpDownMinute&quot;;
			this-&gt;domainUpDownMinute-&gt;Size = System::Drawing::Size(70, 20);
			this-&gt;domainUpDownMinute-&gt;TabIndex = 14;
			// 
			// domainUpDownSecond
			// 
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;0&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;59&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;58&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;57&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;56&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;55&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;54&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;53&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;52&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;51&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;50&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;49&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;48&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;47&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;46&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;45&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;44&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;43&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;42&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;41&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;40&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;39&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;38&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;37&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;36&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;35&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;34&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;33&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;32&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;31&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;30&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;29&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;28&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;27&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;26&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;25&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;24&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;23&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;22&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;21&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;20&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;19&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;18&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;17&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;16&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;15&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;14&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;13&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;12&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;11&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;10&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;9&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;8&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;7&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;6&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;5&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;4&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;3&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;2&quot;);
			this-&gt;domainUpDownSecond-&gt;Items-&gt;Add(L&quot;1&quot;);
			this-&gt;domainUpDownSecond-&gt;Location = System::Drawing::Point(199, 135);
			this-&gt;domainUpDownSecond-&gt;Name = L&quot;domainUpDownSecond&quot;;
			this-&gt;domainUpDownSecond-&gt;Size = System::Drawing::Size(70, 20);
			this-&gt;domainUpDownSecond-&gt;TabIndex = 15;
			// 
			// label6
			// 
			this-&gt;label6-&gt;AutoSize = true;
			this-&gt;label6-&gt;Location = System::Drawing::Point(15, 116);
			this-&gt;label6-&gt;Name = L&quot;label6&quot;;
			this-&gt;label6-&gt;Size = System::Drawing::Size(69, 13);
			this-&gt;label6-&gt;TabIndex = 16;
			this-&gt;label6-&gt;Text = L&quot;Nach Uhrzeit&quot;;
			// 
			// label7
			// 
			this-&gt;label7-&gt;AutoSize = true;
			this-&gt;label7-&gt;Location = System::Drawing::Point(12, 251);
			this-&gt;label7-&gt;Name = L&quot;label7&quot;;
			this-&gt;label7-&gt;Size = System::Drawing::Size(43, 13);
			this-&gt;label7-&gt;TabIndex = 17;
			this-&gt;label7-&gt;Text = L&quot;Uhrzeit:&quot;;
			// 
			// label8
			// 
			this-&gt;label8-&gt;AutoSize = true;
			this-&gt;label8-&gt;Location = System::Drawing::Point(2, 274);
			this-&gt;label8-&gt;Name = L&quot;label8&quot;;
			this-&gt;label8-&gt;Size = System::Drawing::Size(72, 13);
			this-&gt;label8-&gt;TabIndex = 18;
			this-&gt;label8-&gt;Text = L&quot;Ausschaltzeit:&quot;;
			// 
			// labelTimeNow
			// 
			this-&gt;labelTimeNow-&gt;AutoSize = true;
			this-&gt;labelTimeNow-&gt;Location = System::Drawing::Point(61, 251);
			this-&gt;labelTimeNow-&gt;Name = L&quot;labelTimeNow&quot;;
			this-&gt;labelTimeNow-&gt;Size = System::Drawing::Size(0, 13);
			this-&gt;labelTimeNow-&gt;TabIndex = 19;
			// 
			// labelTimeOut
			// 
			this-&gt;labelTimeOut-&gt;AutoSize = true;
			this-&gt;labelTimeOut-&gt;Location = System::Drawing::Point(101, 274);
			this-&gt;labelTimeOut-&gt;Name = L&quot;labelTimeOut&quot;;
			this-&gt;labelTimeOut-&gt;Size = System::Drawing::Size(0, 13);
			this-&gt;labelTimeOut-&gt;TabIndex = 20;
			// 
			// label9
			// 
			this-&gt;label9-&gt;AutoSize = true;
			this-&gt;label9-&gt;Location = System::Drawing::Point(291, 289);
			this-&gt;label9-&gt;Name = L&quot;label9&quot;;
			this-&gt;label9-&gt;Size = System::Drawing::Size(90, 13);
			this-&gt;label9-&gt;TabIndex = 21;
			this-&gt;label9-&gt;Text = L&quot;Copyright by TDK&quot;;
			// 
			// timer1
			// 
			this-&gt;timer1-&gt;Enabled = true;
			this-&gt;timer1-&gt;Tick += gcnew System::EventHandler(this, &amp;Form1::timer1_Tick);
			// 
			// timer2
			// 
			this-&gt;timer2-&gt;Tick += gcnew System::EventHandler(this, &amp;Form1::timer2_Tick);
			// 
			// timer3
			// 
			this-&gt;timer3-&gt;Tick += gcnew System::EventHandler(this, &amp;Form1::timer3_Tick);
			// 
			// buttonStop
			// 
			this-&gt;buttonStop-&gt;Location = System::Drawing::Point(15, 221);
			this-&gt;buttonStop-&gt;Name = L&quot;buttonStop&quot;;
			this-&gt;buttonStop-&gt;Size = System::Drawing::Size(75, 23);
			this-&gt;buttonStop-&gt;TabIndex = 22;
			this-&gt;buttonStop-&gt;Text = L&quot;Abbrechen&quot;;
			this-&gt;buttonStop-&gt;UseVisualStyleBackColor = true;
			this-&gt;buttonStop-&gt;Click += gcnew System::EventHandler(this, &amp;Form1::buttonStop_Click);
			// 
			// Form1
			// 
			this-&gt;AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this-&gt;AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this-&gt;ClientSize = System::Drawing::Size(393, 311);
			this-&gt;Controls-&gt;Add(this-&gt;buttonStop);
			this-&gt;Controls-&gt;Add(this-&gt;label9);
			this-&gt;Controls-&gt;Add(this-&gt;labelTimeOut);
			this-&gt;Controls-&gt;Add(this-&gt;labelTimeNow);
			this-&gt;Controls-&gt;Add(this-&gt;label8);
			this-&gt;Controls-&gt;Add(this-&gt;label7);
			this-&gt;Controls-&gt;Add(this-&gt;label6);
			this-&gt;Controls-&gt;Add(this-&gt;domainUpDownSecond);
			this-&gt;Controls-&gt;Add(this-&gt;domainUpDownMinute);
			this-&gt;Controls-&gt;Add(this-&gt;domainUpDownHour);
			this-&gt;Controls-&gt;Add(this-&gt;buttonTime);
			this-&gt;Controls-&gt;Add(this-&gt;buttonTimer);
			this-&gt;Controls-&gt;Add(this-&gt;label5);
			this-&gt;Controls-&gt;Add(this-&gt;label4);
			this-&gt;Controls-&gt;Add(this-&gt;label3);
			this-&gt;Controls-&gt;Add(this-&gt;label2);
			this-&gt;Controls-&gt;Add(this-&gt;textBoxSecond);
			this-&gt;Controls-&gt;Add(this-&gt;textBoxMinute);
			this-&gt;Controls-&gt;Add(this-&gt;textBoxHour);
			this-&gt;Controls-&gt;Add(this-&gt;label1);
			this-&gt;Icon = (cli::safe_cast&lt;System::Drawing::Icon^  &gt;(resources-&gt;GetObject(L&quot;$this.Icon&quot;)));
			this-&gt;MaximizeBox = false;
			this-&gt;Name = L&quot;Form1&quot;;
			this-&gt;Text = L&quot;Windows - Zeitausschalter&quot;;
			this-&gt;Load += gcnew System::EventHandler(this, &amp;Form1::Form1_Load);
			this-&gt;ResumeLayout(false);
			this-&gt;PerformLayout();

		}
#pragma endregion
	private: System::Void buttonTimer_Click(System::Object^  sender, System::EventArgs^  e) {
				 int stdIn;
				 int minIn;
				 int secIn;	
				 dayEnd = 0;
				 hourEnd = 0;
				 minEnd = 0;
				 secEnd = 0;
				 try
				 {
					 stdIn = Convert::ToInt32(textBoxHour-&gt;Text);				 
				 }
				 catch (FormatException^)
				 {
					 textBoxHour-&gt;Text = &quot;0&quot;;				 	
				 }
				 try
				 {
					 minIn = Convert::ToInt32(textBoxMinute-&gt;Text);
				 }
				 catch (FormatException^)
				 {
					 textBoxMinute-&gt;Text = &quot;0&quot;;
				 }
				 try
				 {
					 secIn = Convert::ToInt32(textBoxSecond-&gt;Text);
				 }
				 catch (FormatException^)
				 {
					 textBoxSecond-&gt;Text = &quot;0&quot;;				 	
				 }
				 if(stdIn &gt;= 24 || minIn &gt;= 60 || secIn &gt;= 60){
					 MessageBox::Show(&quot;Fehler, bitte auf Überschreitungen bei der Eingabe achten!&quot;);
				 }
				 TimeCalculate(stdIn,minIn,secIn);
				 timer3-&gt;Start();
			 }
	private: System::Void buttonTime_Click(System::Object^  sender, System::EventArgs^  e) {
				 int stdIn;
				 int minIn;
				 int secIn;
				 dayEnd = 0;
				 hourEnd = 0;
				 minEnd = 0;
				 secEnd = 0;
				 try
				 {
					 stdIn = Convert::ToInt32(domainUpDownHour-&gt;Text);				 
				 }
				 catch (FormatException^)
				 {
					 domainUpDownHour-&gt;Text = &quot;0&quot;;				 	
				 }
				 try
				 {
					 minIn = Convert::ToInt32(domainUpDownMinute-&gt;Text);
				 }
				 catch (FormatException^)
				 {
					 domainUpDownMinute-&gt;Text = &quot;0&quot;;
				 }
				 try
				 {
					 secIn = Convert::ToInt32(domainUpDownSecond-&gt;Text);
				 }
				 catch (FormatException^)
				 {
					 domainUpDownSecond-&gt;Text = &quot;0&quot;;				 	
				 }	
				 labelTimeOut-&gt;Text = stdIn + &quot; : &quot; + minIn + &quot; : &quot; + secIn;
				 timer2-&gt;Start();
			 }
	private: System::Void buttonStop_Click(System::Object^  sender, System::EventArgs^  e) {
				 timer2-&gt;Stop();
				 timer3-&gt;Stop();
				 dayEnd = 0;
				 hourEnd = 0;
				 minEnd = 0;
				 secEnd = 0;
				 labelTimeOut-&gt;Text = &quot;&quot;;
			 }
	private: System::Void timer1_Tick(System::Object^  sender, System::EventArgs^  e) {
				 TimeRenew();
			 }
	private: System::Void timer2_Tick(System::Object^  sender, System::EventArgs^  e) {
				 std::time_t Zeit;
				 std::tm *jetzt;
				 Zeit = std::time(0);
				 jetzt = std::localtime(&amp;Zeit);
				 if(hourEnd == jetzt-&gt;tm_hour &amp;&amp; minEnd == jetzt-&gt;tm_min &amp;&amp; secEnd == jetzt-&gt;tm_sec &amp;&amp; dayEnd == jetzt-&gt;tm_mday){
					 System::Diagnostics::Process::Start(&quot;shutdown.exe /s /t 1&quot;);
					 System::Diagnostics::Process::Start(&quot;shutdown.exe -s -t 1&quot;);
				 }
			 }
	private: System::Void timer3_Tick(System::Object^  sender, System::EventArgs^  e) {
				 std::time_t Zeit;
				 std::tm *jetzt;
				 Zeit = std::time(0);
				 jetzt = std::localtime(&amp;Zeit);
				 if (hourEnd == jetzt-&gt;tm_hour &amp;&amp; minEnd == jetzt-&gt;tm_min &amp;&amp; secEnd == jetzt-&gt;tm_mon){
					 System::Diagnostics::Process::Start(&quot;shutdown.exe /s /t 1&quot;);
					 System::Diagnostics::Process::Start(&quot;shutdown.exe -s -t 1&quot;);
				 }
			 }
	private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
			 }
	};
}
</code></pre>
<p>so jetzt erst mal BIG THX an Scorcher!<br />
und euch allen auch mal für die erste hilfe!<br />
und ´bitte helft mir jetzt auch!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1391422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1391422</guid><dc:creator><![CDATA[TDK-zu faul zum andmelden]]></dc:creator><pubDate>Wed, 24 Oct 2007 18:04:19 GMT</pubDate></item></channel></rss>