<?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[fehler bei getwindow()]]></title><description><![CDATA[<p>hallo schreibe das erste mal in diesem forum,<br />
also zu meinem prob:</p>
<p>wie im folgendem codeausschnitt steht hol ich mir per getwindow den inhalt der textboxen meines progs und speicher diese in eine txt-datei<br />
nur dann schreibt mir windoof ein fehler(fehler in der anwendung) aus</p>
<pre><code>length += GetWindowText(hEdit_N, szEingabe1[30], 30);
					length += GetWindowText(hEdit_NN, szEingabe2[30], 30);
					length += GetWindowText(hEdit_DJ, szEingabe3[30], 30);
					length += GetWindowText(hEdit_Str, szEingabe4[30], 30);
					length += GetWindowText(hEdit_PLZ, szEingabe5[30], 30);
					length += GetWindowText(hEdit_Ort, szEingabe6[30], 30);
					length += GetWindowText(hEdit_Land, szEingabe7[30], 30);
					length += GetWindowText(hEdit_mail, szEingabe8[30], 30);
					length += GetWindowText(hEdit_Net, szEingabe9[30], 30);
					length += GetWindowText(hEdit_Nr, szEingabe10[30], 30);
					length += GetWindowText(hEdit_Fax, szEingabe11[30], 30);
					length += GetWindowText(hEdit_mobil, szEingabe12[30], 30);

					char *speicher = new char[length + 1];

					strcat(speicher, szEingabe1[30]);
					strcat(speicher, szEingabe2[30]);
					strcat(speicher, szEingabe3[30]);
					strcat(speicher, szEingabe4[30]);
					strcat(speicher, szEingabe5[30]);
					strcat(speicher, szEingabe6[30]);
					strcat(speicher, szEingabe7[30]);
					strcat(speicher, szEingabe8[30]);
					strcat(speicher, szEingabe9[30]);
					strcat(speicher, szEingabe10[30]);
					strcat(speicher, szEingabe11[30]);
					strcat(speicher, szEingabe12[30]);

                    if(list != NULL)
					{
						list = fopen(&quot;info.txt&quot;, &quot;a&quot;);
						fprintf(list, speicher);
						MessageBox(NULL, &quot;Es wurde in vorhandene Datei geschrieben.&quot;, &quot;Info&quot;,
									MB_OK | MB_ICONINFORMATION);
					}
					else if(list == NULL)
					{
						list = fopen(&quot;info.txt&quot;, &quot;wt&quot;);
						fprintf(list, speicher);
						MessageBox(NULL, &quot;Eine neue Datei wurde erzeugt.&quot;, &quot;Info&quot;,
									MB_OK | MB_ICONINFORMATION);
					}
</code></pre>
<p>ick bitte um hilfe, denn ick wüsste absolut nicht wo der fehler liegt<br />
er könnte höchstens bei den if-schleifen sein</p>
<p>gruz xeath</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/83955/fehler-bei-getwindow</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 14:23:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/83955.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Aug 2004 18:27:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to fehler bei getwindow() on Wed, 25 Aug 2004 18:27:24 GMT]]></title><description><![CDATA[<p>hallo schreibe das erste mal in diesem forum,<br />
also zu meinem prob:</p>
<p>wie im folgendem codeausschnitt steht hol ich mir per getwindow den inhalt der textboxen meines progs und speicher diese in eine txt-datei<br />
nur dann schreibt mir windoof ein fehler(fehler in der anwendung) aus</p>
<pre><code>length += GetWindowText(hEdit_N, szEingabe1[30], 30);
					length += GetWindowText(hEdit_NN, szEingabe2[30], 30);
					length += GetWindowText(hEdit_DJ, szEingabe3[30], 30);
					length += GetWindowText(hEdit_Str, szEingabe4[30], 30);
					length += GetWindowText(hEdit_PLZ, szEingabe5[30], 30);
					length += GetWindowText(hEdit_Ort, szEingabe6[30], 30);
					length += GetWindowText(hEdit_Land, szEingabe7[30], 30);
					length += GetWindowText(hEdit_mail, szEingabe8[30], 30);
					length += GetWindowText(hEdit_Net, szEingabe9[30], 30);
					length += GetWindowText(hEdit_Nr, szEingabe10[30], 30);
					length += GetWindowText(hEdit_Fax, szEingabe11[30], 30);
					length += GetWindowText(hEdit_mobil, szEingabe12[30], 30);

					char *speicher = new char[length + 1];

					strcat(speicher, szEingabe1[30]);
					strcat(speicher, szEingabe2[30]);
					strcat(speicher, szEingabe3[30]);
					strcat(speicher, szEingabe4[30]);
					strcat(speicher, szEingabe5[30]);
					strcat(speicher, szEingabe6[30]);
					strcat(speicher, szEingabe7[30]);
					strcat(speicher, szEingabe8[30]);
					strcat(speicher, szEingabe9[30]);
					strcat(speicher, szEingabe10[30]);
					strcat(speicher, szEingabe11[30]);
					strcat(speicher, szEingabe12[30]);

                    if(list != NULL)
					{
						list = fopen(&quot;info.txt&quot;, &quot;a&quot;);
						fprintf(list, speicher);
						MessageBox(NULL, &quot;Es wurde in vorhandene Datei geschrieben.&quot;, &quot;Info&quot;,
									MB_OK | MB_ICONINFORMATION);
					}
					else if(list == NULL)
					{
						list = fopen(&quot;info.txt&quot;, &quot;wt&quot;);
						fprintf(list, speicher);
						MessageBox(NULL, &quot;Eine neue Datei wurde erzeugt.&quot;, &quot;Info&quot;,
									MB_OK | MB_ICONINFORMATION);
					}
</code></pre>
<p>ick bitte um hilfe, denn ick wüsste absolut nicht wo der fehler liegt<br />
er könnte höchstens bei den if-schleifen sein</p>
<p>gruz xeath</p>
]]></description><link>https://www.c-plusplus.net/forum/post/591200</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/591200</guid><dc:creator><![CDATA[Xeath]]></dc:creator><pubDate>Wed, 25 Aug 2004 18:27:24 GMT</pubDate></item><item><title><![CDATA[Reply to fehler bei getwindow() on Wed, 25 Aug 2004 19:10:08 GMT]]></title><description><![CDATA[<p>Statt szEingabe1[30] usw. solltest du nur szEingabe1 schreiben <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/591256</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/591256</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 25 Aug 2004 19:10:08 GMT</pubDate></item><item><title><![CDATA[Reply to fehler bei getwindow() on Thu, 26 Aug 2004 17:02:20 GMT]]></title><description><![CDATA[<p>Danke für die Hilfe, es hat geklappt<br />
gruz Xeath</p>
]]></description><link>https://www.c-plusplus.net/forum/post/592235</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/592235</guid><dc:creator><![CDATA[Xeath]]></dc:creator><pubDate>Thu, 26 Aug 2004 17:02:20 GMT</pubDate></item></channel></rss>