<?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[Daten senden]]></title><description><![CDATA[<pre><code class="language-cpp">char *s;

        recv(sockfd2,s,1024, 0)) == -1);
		{
        perror(&quot;recvfrom&quot;);
            exit(1);

		printf(&quot;Received: %s&quot;,s);

		closesocket(sockfd2);
</code></pre>
<p>leider kommt immer error C2059: Syntaxfehler : ')'</p>
<p>2. Frage</p>
<pre><code class="language-cpp">// Senden

char *s[10] = &quot;ipconfig &gt; C:\\&quot;;

bytes; 

// send s
send(sock, s, strlen(s), 0); 
strcpy(buf, &quot;Wurde Gesendet: &quot;);
</code></pre>
<p>das senden sollte glaube ich stimmen...</p>
<p>edit: sfds</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/85600/daten-senden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 16:36:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/85600.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Sep 2004 16:18:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 23:15:56 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">char *s;

        recv(sockfd2,s,1024, 0)) == -1);
		{
        perror(&quot;recvfrom&quot;);
            exit(1);

		printf(&quot;Received: %s&quot;,s);

		closesocket(sockfd2);
</code></pre>
<p>leider kommt immer error C2059: Syntaxfehler : ')'</p>
<p>2. Frage</p>
<pre><code class="language-cpp">// Senden

char *s[10] = &quot;ipconfig &gt; C:\\&quot;;

bytes; 

// send s
send(sock, s, strlen(s), 0); 
strcpy(buf, &quot;Wurde Gesendet: &quot;);
</code></pre>
<p>das senden sollte glaube ich stimmen...</p>
<p>edit: sfds</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604148</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Fri, 10 Sep 2004 23:15:56 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 16:22:24 GMT]]></title><description><![CDATA[<p>Hamster schrieb:</p>
<blockquote>
<p>char *s;</p>
<p>recv(sockfd2,s,1024, 0)) == -1);<br />
{<br />
perror(&quot;recvfrom&quot;);<br />
exit(1);</p>
<p>printf(&quot;Received: %s&quot;,s);</p>
<p>closesocket(sockfd2);</p>
<p>leider kommt immer error C2059: Syntaxfehler : ')'</p>
<p>2. Frage</p>
<p>// Senden</p>
<p>char *s[10] = &quot;ipconfig &gt; C:\&quot;;</p>
<p>bytes;</p>
<p>// send s<br />
send(sock, s, strlen(s), 0);<br />
strcpy(buf, &quot;Wurde Gesendet: &quot;);</p>
<p>das senden sollte glaube ich stimmen...</p>
</blockquote>
<p>so leicht geht das nicht...wer wird für dich eine neu datei erstellen? glaubst das macht der socket selber?</p>
<p>cu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604152</guid><dc:creator><![CDATA[socket.]]></dc:creator><pubDate>Fri, 10 Sep 2004 16:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 17:21:09 GMT]]></title><description><![CDATA[<p>Hamster schrieb:</p>
<blockquote>
<pre><code class="language-cpp">char *s;
recv(sockfd2,s,1024, 0)) == -1);
{
 perror(&quot;recvfrom&quot;);
 exit(1);
 printf(&quot;Received: %s&quot;,s);
 closesocket(sockfd2);
</code></pre>
<p>leider kommt immer error C2059: Syntaxfehler : ')'</p>
</blockquote>
<p>Tja, wenn du da keine Syntax-Fehler siehst, dann ist dir wohl eh schon fast nicht mehr zu helfen :p<br />
- bei recv: 1 Klammer auf - 3 Klammern zu<br />
- darunter ein alleinstehendes {<br />
- Code nach exit, der so wohl nie erreicht werden würde<br />
Außerdem hast du für s keinen Speicher reserviert - alles in allem <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/604176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604176</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 10 Sep 2004 17:21:09 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 19:16:00 GMT]]></title><description><![CDATA[<p>so erstmal danke socket. danke flenders für die schnelle antowrt<br />
so habe nun die dummen Fehler raus gemacht ( thanks ) aber flenders ich dachte das char das mit dem speicher reservieren übernimmt .. und socket was meinst du mit daten erstellen ??</p>
<p>char *s;<br />
if (recv (sockfd2,s,1024, 0) == -1) {<br />
perror(&quot;recvfrom&quot;);</p>
<p>printf(&quot;Received: %s&quot;,s);<br />
closesocket(sockfd2);</p>
<p>}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604225</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604225</guid><dc:creator><![CDATA[Hamszer]]></dc:creator><pubDate>Fri, 10 Sep 2004 19:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 19:21:06 GMT]]></title><description><![CDATA[<p>char s[1024];</p>
<p>von recv wird kein Speicher angelegt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604228</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604228</guid><dc:creator><![CDATA[..]]></dc:creator><pubDate>Fri, 10 Sep 2004 19:21:06 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 19:22:15 GMT]]></title><description><![CDATA[<p>aaaa THANKS</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604230</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Fri, 10 Sep 2004 19:22:15 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 20:42:13 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">char *s;
//....
</code></pre>
<p>Am Anfang des Scripts:</p>
<pre><code class="language-cpp">char *s;
s = new char[1024];
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /> ACHTUNG: Bitte immer am Ende aufäumen: Nämlich mit delete[] wieder löschen, das geht so:</p>
<pre><code class="language-cpp">delete[] s;
</code></pre>
<p>Ähm, das sieht so aus als hättest du dir den leichten Teil eines Codeschnipsel rausgesucht und dann kopiert...</p>
<p>Zu den Sockets:<br />
<a href="http://www.c-worker.ch/tuts.html" rel="nofollow">http://www.c-worker.ch/tuts.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/604259</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604259</guid><dc:creator><![CDATA[:-)]]></dc:creator><pubDate>Fri, 10 Sep 2004 20:42:13 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 20:47:57 GMT]]></title><description><![CDATA[<p>also so weit bin ich nun der server hat vom Clienten die Variable s bekommen</p>
<p>nun möchte ich das er einen namen einer datei generiert so weit kein prob<br />
und s da rein schreibt und da ist das problem</p>
<p>NOrmalerweise wehre das so</p>
<p>string s;</p>
<p>// Dateinamen generieren (in s2)<br />
s+=s2+&quot;.txt&quot;;<br />
system(s.c_str());</p>
<p>nun zickt die exe rum um meint<br />
Der Befehl &quot;dateiname.txt&quot;ist entweder flasch geschrieben oder konnte nicht gefunden werden .</p>
<p>heikle sache kann mir da jemand helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604260</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604260</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Fri, 10 Sep 2004 20:47:57 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 21:10:53 GMT]]></title><description><![CDATA[<p>Versuche doch mal in der Konsole dateiname.txt einzugeben <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="😉"
    /> - was sollte das auch geben :p<br />
Irgendwie werde ich das Gefühl nicht los, dass dir massiv Grundlagen fehlen <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/604264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604264</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 10 Sep 2004 21:10:53 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Fri, 10 Sep 2004 22:03:03 GMT]]></title><description><![CDATA[<p>bei datei name ist ja schon was drin // habe es einfach mal ge nennant<br />
das wehre dann s2 also die generierte zahl ...... dann die ist dann 5 stellig<br />
und jo mir fehlen in c noch ein paar sachen ^^ ok zimmlich viel<br />
steige gerade von VB um bitte um verständnis</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604280</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604280</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Fri, 10 Sep 2004 22:03:03 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sat, 11 Sep 2004 07:13:30 GMT]]></title><description><![CDATA[<p>Dann solltest du aber nicht unbedingt gleich mit Sockets anfangen <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 />
Mir ging es darum, dass nur ein Dateiname kein Befehl ist, den du in der Konsole eingeben kannst <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>
<p>Außerdem musst du dich entscheiden, ob du Ansi-C, C++ oder WinAPI verwenden willst. Wobei du dich sinnvoller Weise erstmal mit C bzw. C++ befassen solltest, damit du einigermaßen mit der Sprache vertraut wirst <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/604343</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604343</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 11 Sep 2004 07:13:30 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sat, 11 Sep 2004 10:43:23 GMT]]></title><description><![CDATA[<p>jo werde alles nachhollen wollte nur noch das fertig machen knechte mich schon lange dran.... <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 />
das ist ja das kommisch natürlich ist Dateiname kein Befehl soll es ja auch nicht ^^</p>
<p>aber ich verstehe es nicht sagen wir mal er bekommt die Variable s als char</p>
<p>nun soll er draus eine txt erstellen der name der txt wird in s2 generiert<br />
so weit so jut</p>
<p>so würde es ausschauen<br />
also erstmal ohne s übermitlung<br />
würde das so ausehen</p>
<p>cin.get();</p>
<p>{<br />
string s = &quot;ipconfig &gt; C:\&quot;;<br />
// Dateinamen generieren (in s2)<br />
s+=s2+&quot;.txt&quot;;<br />
system(s.c_str());</p>
<p>nun bekommt der s einfach char *s; kann ich nicht machen da zickt er wie könnte ich es ümwandel vielleicht so wie in Delphi stringtoblabla HElp</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604448</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Sat, 11 Sep 2004 10:43:23 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sat, 11 Sep 2004 12:25:58 GMT]]></title><description><![CDATA[<p>Ich verstehe nicht so ganz, worauf du hinaus willst <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/604531</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604531</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 11 Sep 2004 12:25:58 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sat, 11 Sep 2004 14:27:35 GMT]]></title><description><![CDATA[<p>Client</p>
<p>also zu erst wird hier s als Char defeniert dort werden die ergebnisse<br />
von ipconfig gepeichert danach wird s verendet</p>
<p>char s[1000] = &quot;ipconfig &gt; C:\&quot;;</p>
<p>// send s</p>
<p>send(sock, s, strlen(s), 0);<br />
strcpy(buf, &quot;Wurde Gesendet: &quot;);</p>
<p>// Der server<br />
so der bekommt dann s und</p>
<p>char s[1000];</p>
<p>if (recv (sockfd2,s,1024, 0) == -1) {<br />
perror(&quot;recvfrom&quot;);</p>
<p>printf(&quot;Received: %s&quot;,s);</p>
<p>closesocket(sockfd2);<br />
}</p>
<p>//Generiert eine neue zahl und benutzt die als Datei namen für die .txt</p>
<p>int argc;<br />
char *argv[1000] ;</p>
<p>// Eine zahl wird generiert<br />
const int anzahlZeichen = 10;<br />
srand(time(NULL));<br />
string s2;</p>
<p>for(int i=0; i &lt; anzahlZeichen; i++) {<br />
s2 += static_cast&lt;char&gt;(rand() % 26 + 97); // nicht ändern<br />
}<br />
cout &lt;&lt; &quot;------------&quot; &lt;&lt; endl;<br />
cout &lt;&lt; s2;</p>
<p>// nun sollte er s in die s2 ( der generierte name ) einsetzen damit der inhalt<br />
von s in der neuen txt drin ist</p>
<p>string *s;<br />
s+=s2+&quot;.txt&quot;;<br />
system(s.c_str());</p>
<p>// Leider klapt es nicht habe schon daran gedacht es mit ofstream zu machen<br />
leider kann es dir include bei mir nicht finden<br />
und noch eine frage wenn ich s bekommen habe benutze ich printf(&quot;Received: %s&quot;,s);<br />
um das empfange auszugeben kommen ganz kommisch zeichen ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604625</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604625</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Sat, 11 Sep 2004 14:27:35 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sat, 11 Sep 2004 18:10:16 GMT]]></title><description><![CDATA[<p>Hamster schrieb:</p>
<blockquote>
<p>char s[1000];<br />
recv (sockfd2,s,1024, 0) ...</p>
</blockquote>
<p>Wieso 1024, wenn dein Buffer gar nicht so groß ist</p>
<p>Hamster schrieb:</p>
<blockquote>
<p>// nun sollte er s in die s2 ( der generierte name ) einsetzen damit der inhalt<br />
von s in der neuen txt drin ist</p>
<p>string *s;<br />
s+=s2+&quot;.txt&quot;;<br />
system(s.c_str());</p>
</blockquote>
<p>Deine Logik diesbezüglich verstehe ich immer noch nicht <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 />
Wieso sollte er etwas in eine Datei schreiben, wenn du versuchst, den Dateinamen auszuführen :p</p>
<p>Hamster schrieb:</p>
<blockquote>
<p>und noch eine frage wenn ich s bekommen habe benutze ich printf(&quot;Received: %s&quot;,s);<br />
um das empfange auszugeben kommen ganz kommisch zeichen ...</p>
</blockquote>
<p>Dann stehen diese komischen Zeichen offenbar dort drin <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/604750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604750</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 11 Sep 2004 18:10:16 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sat, 11 Sep 2004 21:08:52 GMT]]></title><description><![CDATA[<p>ich weiß ich nerve aber ich versuche es weiter</p>
<p>1. ok das mit dem Buffer war dumm</p>
<p>2.Wieso den Dateinamen ausführen er soll den nur erstellen und dort s rein schreiben.<br />
wenn ich stat string *s; einfach string s = &quot;ipconfig &gt; C:\&quot;; mache dann geht es aber dann speichert er dort die<br />
lokale ip .... aber der server soll meine ip kommen die in s drin ist und die in eine txt schreiben jetzt fragst du dich<br />
warum dann immer einen neuen namen generieren naja möchte nicht das die sich überschreiben</p>
<p>3. Soll ich vielleicht den ganzen code vom Client und Server posten damit du mich verstechst <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/604863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604863</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Sat, 11 Sep 2004 21:08:52 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sat, 11 Sep 2004 21:21:43 GMT]]></title><description><![CDATA[<p>Hamster schrieb:</p>
<blockquote>
<p>Wieso den Dateinamen ausführen er soll den nur erstellen und dort s rein schreiben. wenn ich stat string *s; einfach string s = &quot;ipconfig &gt; C:\&quot;; mache dann geht es aber dann speichert er dort die lokale ip .... aber der server soll meine ip kommen die in s drin ist und die in eine txt schreiben</p>
</blockquote>
<p>Das ist ja auch klar, denn mit &gt; wird ja die Ausgabe von ipconfig in eine Datei umgeleitet <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="😉"
    /><br />
Du kannst also natürlich nicht einfach nur einen Dateinamen angeben - wenn du eine Datei anlegen und hineinschreiben willst kannst du z.B. <a href="http://msdn.microsoft.com/library/en-us/fileio/base/createfile.asp" rel="nofollow">CreateFile</a>/<a href="http://msdn.microsoft.com/library/en-us/fileio/base/writefile.asp" rel="nofollow">WriteFile</a>/<a href="http://msdn.microsoft.com/library/en-us/sysinfo/base/closehandle.asp" rel="nofollow">CloseHandle</a> verwenden <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/604872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604872</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 11 Sep 2004 21:21:43 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sat, 11 Sep 2004 23:22:27 GMT]]></title><description><![CDATA[<p>geht das auch über ofstream und seinen beiden freunden ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/604904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604904</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Sat, 11 Sep 2004 23:22:27 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sat, 11 Sep 2004 23:58:34 GMT]]></title><description><![CDATA[<p>sa sagen wir es mal so</p>
<p>hamster = CreateFile(&quot;text.txt&quot;, GENERIC_WRITE, NULL, NULL, CREATE_ALWAYS, NULL, NULL);<br />
WriteFile(hamster,s, FileSize, &amp;BytesWritten, NULL);</p>
<p>nun hat er die neue datei text.txt erstellt aber es ist kein s drin gar nichts<br />
habe es auch mit</p>
<p>char *s3;<br />
s3 = &quot;Dummer text&quot;;<br />
WriteFile(hamster,s3, FileSize, &amp;BytesWritten, NULL);</p>
<p>steht auch nichts drin <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="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/604915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/604915</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Sat, 11 Sep 2004 23:58:34 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sun, 12 Sep 2004 10:27:35 GMT]]></title><description><![CDATA[<p>Merkst Du denn gar nicht das es ohne Grundlagenwissen Deinerseits gar keinen Sinn macht, Dir etwas erklären zu wollen?</p>
<p>Und sag jetzt nicht wieder &quot;Grundlagenwissen hab ich&quot;, du beweist bereits mehrmals eindrucksvoll das es bei Dir mit den Grundlagen nicht allzugut aussieht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/605029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/605029</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Sun, 12 Sep 2004 10:27:35 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sun, 12 Sep 2004 13:20:29 GMT]]></title><description><![CDATA[<p>Wo bitte schön habe ich das gesagt</p>
<p>Grundlagenwissen hab ich</p>
<p>hust hust du meinst bestimmt auf seite 1 das</p>
<p>flenders schrieb<br />
Irgendwie werde ich das Gefühl nicht los, dass dir massiv Grundlagen fehlen</p>
<p>ich antwortete<br />
und jo mir fehlen in c noch ein paar sachen ^^ ok zimmlich viel<br />
steige gerade von VB um bitte um verständnis</p>
<p><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>
<p>ich weiß das hört sich zimmlich lamer an habe am anfang ganz normal mit c angefangen und so dann kam mir die idee mit dem tool und deswegen versuche es ihrentwie fertig zu machen und weiter grundlagen zu lernen<br />
aber ich gebe mir mühe <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="🙂"
    /> :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/605179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/605179</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Sun, 12 Sep 2004 13:20:29 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sun, 12 Sep 2004 14:14:55 GMT]]></title><description><![CDATA[<p>Was für einen Wert hat denn dein FileSize?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/605216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/605216</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Sep 2004 14:14:55 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sun, 12 Sep 2004 15:25:23 GMT]]></title><description><![CDATA[<p>meinst du DWORD FileSize;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/605288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/605288</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Sun, 12 Sep 2004 15:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sun, 12 Sep 2004 16:19:18 GMT]]></title><description><![CDATA[<blockquote>
<p>Number of bytes to be written to the file.</p>
</blockquote>
<p>Also solltest du da schon was angeben <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/605332</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/605332</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Sep 2004 16:19:18 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sun, 12 Sep 2004 18:41:48 GMT]]></title><description><![CDATA[<p>ha habs geschaft habe<br />
int FileSize = 1000;<br />
auf 1000 gemacht und er schreibt s wirklich rein <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 />
danke für deine Gedult mit mir finde ich wirklich super von dir ...</p>
<p>so nur noch 2 sachen <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="🙂"
    /></p>
<p>1. wie könnte ich das mit der generierten zahl verbinden also für den datei namen</p>
<p>2.hmm die s die er bekommen hat schaut so aus<br />
PC<br />
ÌÌÌÌ‘D<br />
<br />
ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ</p>
<p>aber warum ist<br />
char s[1000] = &quot;ipconfig &gt; C:\&quot;;</p>
<p>// send s<br />
send(sock, s, strlen(s), 0);<br />
strcpy(buf, &quot;Wurde Gesendet: &quot;);</p>
<p>nicht richtig</p>
]]></description><link>https://www.c-plusplus.net/forum/post/605436</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/605436</guid><dc:creator><![CDATA[Hamster]]></dc:creator><pubDate>Sun, 12 Sep 2004 18:41:48 GMT</pubDate></item><item><title><![CDATA[Reply to Daten senden on Sun, 12 Sep 2004 18:52:32 GMT]]></title><description><![CDATA[<p>Hamster schrieb:</p>
<blockquote>
<p>ha habs geschaft habe<br />
int FileSize = 1000;<br />
auf 1000 gemacht und er schreibt s wirklich rein <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="🙂"
    /></p>
</blockquote>
<p>Nicht einfach 1000, sondern nur die Größe der tatsächlich zu schreibenden Daten (String-Länge)</p>
<p>Hamster schrieb:</p>
<blockquote>
<p>wie könnte ich das mit der generierten zahl verbinden also für den datei namen</p>
</blockquote>
<p>Ist dein Problem die Zahl (also dass es kein String ist)?! Dann kannst du entweder atoi oder wsprintf verwenden. Benutzung: siehe Doku!</p>
<p>Deine 2. Frage verstehe ich leider nicht <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/605441</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/605441</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 12 Sep 2004 18:52:32 GMT</pubDate></item></channel></rss>