<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>tutorials.de - C/C++</title>
		<link>http://www.tutorials.de/</link>
		<description>Alles zur Programmiersprache C bzw. C++</description>
		<language>de</language>
		<lastBuildDate>Wed, 08 Sep 2010 23:10:17 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>30</ttl>
		<image>
			<url>http://style.tutorials.de/v10/images/misc/rss.png</url>
			<title>tutorials.de - C/C++</title>
			<link>http://www.tutorials.de/</link>
		</image>
		<item>
			<title>Verwendung von CImg und ImageMagick in C</title>
			<link>http://www.tutorials.de/c-c/366049-verwendung-von-cimg-und-imagemagick-c.html</link>
			<pubDate>Wed, 08 Sep 2010 15:49:17 GMT</pubDate>
			<description><![CDATA[Abend. 
 
Ich möchte mich in die Thematik der Bearbeitung von Bildern unter C/C++ einarbeiten. Bin diesbezgl. noch absoluter Neuling und habe daher erst mal die Suchmaschine bemüht. Bin dabei über "CImg" gestolpert, welches bereits einen Haufen an Funktionen bietet. Habe die entsprechenden Files...]]></description>
			<content:encoded><![CDATA[<div>Abend.<br />
<br />
Ich möchte mich in die Thematik der Bearbeitung von Bildern unter C/C++ einarbeiten. Bin diesbezgl. noch absoluter Neuling und habe daher erst mal die Suchmaschine bemüht. Bin dabei über &quot;CImg&quot; gestolpert, welches bereits einen Haufen an Funktionen bietet. Habe die entsprechenden Files also erstmal runtergeladen. Habe außerdem gelesen, dass ich, wenn ich Bilder in C mit Hilfe von CImg laden möchte, außerdem ImageMagick installieren muss. Hab ich also auch das erstmal getan.<br />
<br />
Nun wollte ich mit einem Bsp.-Programm anfangen um in die Thematik reinzukommen. Dazu wollte ich folgenden Quellcode nutzen:<br />
<a href="http://www.math.ucla.edu/~wittman/hyper/vick/Cimg_tutorial.pdf" target="_blank">http://www.math.ucla.edu/~wittman/hy...g_tutorial.pdf</a> (Seite 3)<br />
<br />
Bin nach der Anleitung (ab S. 2) vorgegangen. Zuerst also eine leere Konsolenanwendung erstellt, und dann die CImg.h eingefügt und eine neue CImg.cpp erstellt. In die .cpp habe ich dann den Quelltext aus dem Tutorial eingefügt (exakt so). beim compilen sagt er mir dann nach über 100 Errors, dass verschiedene Ausdrücke (memset, strcpy, getenv, etc...) &quot;not a member of 'std'&quot; sind.<br />
<br />
Was mache ich falsch, oder habe ich vergessen? Auch nach includen der stdafx.h keine Änderung, steh leider grad echt aufm Schlauch.<br />
<br />
Danke für Hilfe :)</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>kanonenfutter90</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/366049-verwendung-von-cimg-und-imagemagick-c.html</guid>
		</item>
		<item>
			<title>C: Auf einmal Access Violation, abnormal program termination :(</title>
			<link>http://www.tutorials.de/c-c/365997-c-auf-einmal-access-violation-abnormal-program-termination.html</link>
			<pubDate>Tue, 07 Sep 2010 12:31:44 GMT</pubDate>
			<description>Hallo Freunde, 
die Probleme hören nicht beim debuggen. Ich habe gestern an einer völlig anderen Stelle im Programm versucht einen malloc(); / free(); - Fehler zu beheben und nun wirft mir das Programm hier jetzt eine Access Violation. Offenbar ist doch ein Fehler bei der Speicherallozierung...</description>
			<content:encoded><![CDATA[<div>Hallo Freunde,<br />
die Probleme hören nicht beim debuggen. Ich habe gestern an einer völlig anderen Stelle im Programm versucht einen malloc(); / free(); - Fehler zu beheben und nun wirft mir das Programm hier jetzt eine Access Violation. Offenbar ist doch ein Fehler bei der Speicherallozierung vorgekommen. Ich weiß aber nicht warum und woher der Fehler rührt.<br />
Vorher hat das ganze super funktioniert und jetzt nicht mehr. <br />
<br />
Da Valgrind mir aber sowieso dort etwas von lost bytes angezeigt hat, frage ich doch mal lieber nach, weil ich keine Spur habe, wo der Hund begraben sein könnte. <br />
<br />
Der Codeschnipsel soll aus einem Array (output_number.words[], ist ein BigInt) Die Bits auslesen und dann dezimal umwandeln, danach das Ergebnis in eine Datei schreiben und auf der Shell / Kommandozeile ausgeben. <br />
Der Fehler passiert aber ganz klar unten bei der Ausgabe beim Zugriff auf die dez_out.<br />
<br />
Wäre echt super, wenn ihr mir da weiterhelfen könntet. :)<br />
<br />
Viele liebe Grüße, D<br />
<br />
<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
</pre></td><td class="bbcode_code_highlight"><pre>void binToDez(FILE *FDatei){
&nbsp;
&nbsp; &nbsp; int i = 0;
&nbsp; &nbsp; int j = 0;
&nbsp; &nbsp; int k = 0;
&nbsp; &nbsp; int counter = 0;
&nbsp; &nbsp; int bits = output_number.n * 32;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Anzahl vorhanderner Binaerbits
&nbsp; &nbsp; int len = ceil((double)(bits/ DEZTOBINLEN));&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Anzahl der maximalen Arrayplaetze
&nbsp; &nbsp; char **dez_out; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // BCD-Code Array mit Dezimalzahlen für jedes Bit
&nbsp;
&nbsp; &nbsp; dez_out = (char **)malloc(bits*sizeof(char *));
&nbsp; &nbsp; for(i=0;i&lt;bits;i++){
&nbsp; &nbsp; &nbsp; dez_out&#91;i&#93; = (char *)malloc(len*sizeof(char));
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; for(j=0; j&lt;output_number.n; j++){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Jedes Outputwort wird analysiert
&nbsp; &nbsp; &nbsp; &nbsp; for(i=31; i&gt;=0; i--){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( (1 &lt;&lt; i) &amp; output_number.words&#91;output_number.n-1-j&#93; ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Jedes Bit wird analysiert
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;counter&#93;&#91;len-1&#93; = 1;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Wenn Bit gesetzt: Fuelle letzten Index mit 1
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;counter&#93;&#91;len-1&#93; = 0;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Wenn kein Bit gesetzt: Fuelle letzen Index mit 0
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter++;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; }
&nbsp;
&nbsp;
&nbsp; &nbsp; for(i=0; i&lt;bits; i++){
&nbsp; &nbsp; &nbsp; &nbsp; //fprintf(FDatei, &quot;%d&quot;, dez_out&#91;i&#93;&#91;len-1&#93;); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // BINAERE AUSGABE
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; for(j=0; j&lt;len-1; j++){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;i&#93;&#91;j&#93; = 0;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Indizes mit 0 initialisieren
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; for(i=0; i&lt;bits; i++){
&nbsp; &nbsp; &nbsp; &nbsp; if(dez_out&#91;i&#93;&#91;len-1&#93; == 1){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Wenn ein Bit im letzten Index gefunden wurde,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(j=0; j&lt;bits-i-1; j++){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(k=0; k&lt;len; k++){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;i&#93;&#91;k&#93; = 2 * dez_out&#91;i&#93;&#91;k&#93;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // wird hier so oft die Zahl mit 2 multipliziert, wie ihre Wertigkeit ist (1*2^(bits-i-1))
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(dez_out&#91;i&#93;&#91;k&#93; &gt;9){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;i&#93;&#91;k&#93; -= 10;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;i&#93;&#91;k-1&#93; += 1; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // kann keinen &quot;Overflow&quot; geben, weil 9en vorher mit 2 multipliziert wurden -&gt; 8
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; }
&nbsp;
&nbsp;
&nbsp; &nbsp; for(i=bits-2; i&gt;=0; i--){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Schleife faengt bei zweitniederwertigstem Bit an zu addieren, bis zum letzten (Outputwert)
&nbsp; &nbsp; &nbsp; &nbsp; if(dez_out&#91;i&#93;&#91;len-1&#93; != 0){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Wenn das letzte Bit nicht null ist
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(j=0; j&lt;len; j++){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;bits-1&#93;&#91;j&#93; += dez_out&#91;i&#93;&#91;j&#93;;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(dez_out&#91;bits-1&#93;&#91;j&#93; &gt; 9){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Wenn &quot;overflowt&quot; wurde:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;bits-1&#93;&#91;j&#93; -= 10; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // 10 abziehen und 1 in den naestmoeglichen Index stecken,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(k=j-1; k&gt;=0; k--){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(dez_out&#91;bits-1&#93;&#91;k&#93; == 9){&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // d.h. 9en zu 0 en machen
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;bits-1&#93;&#91;k&#93; = 0;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dez_out&#91;bits-1&#93;&#91;k&#93;++; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // und bei kleineren Ziffern eine 1 addieren
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // und die Schleife nach Addition des Carry fruehzeitig beenden
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; for(i=0; i&lt;len; i++){
&nbsp; &nbsp; &nbsp; &nbsp; if(i==0){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // fuehrende Nullen abfangen
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter = 0;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(j=0; j&lt;len; j++){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(dez_out&#91;bits-1&#93;&#91;j&#93; == 0){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter ++;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j == len-1){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(counter &lt; 2){
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter = 2;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = counter-2;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = counter;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; fprintf(FDatei, &quot;%d&quot;, dez_out&#91;bits-1&#93;&#91;i&#93;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Ausgabe der Dezimalzahl in Ausgabedatei
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;%d&quot;, dez_out&#91;bits-1&#93;&#91;i&#93;);
&nbsp;
&nbsp; &nbsp; }
&nbsp;
&nbsp; &nbsp; free(dez_out);</pre></td></tr></tbody></table></code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>HentaiD</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365997-c-auf-einmal-access-violation-abnormal-program-termination.html</guid>
		</item>
		<item>
			<title>for-schleife: mehrere Initialisierungen</title>
			<link>http://www.tutorials.de/c-c/365996-schleife-mehrere-initialisierungen.html</link>
			<pubDate>Tue, 07 Sep 2010 12:09:07 GMT</pubDate>
			<description><![CDATA[Hallo, 
laut http://www.cppreference.com/wiki/keywords/for sollte es möglich sein, mehrere Initialisierungen durch Komma getrennt zu verwenden. 
 
Mein Mini-Bsp kompiliert aber nicht: 
for(int i = 1, int j = 2; 
    i<10; 
    ++i, ++j) 
{ 
  //... 
}]]></description>
			<content:encoded><![CDATA[<div>Hallo,<br />
laut <a href="http://www.cppreference.com/wiki/keywords/for" target="_blank">http://www.cppreference.com/wiki/keywords/for</a> sollte es möglich sein, mehrere Initialisierungen durch Komma getrennt zu verwenden.<br />
<br />
Mein Mini-Bsp kompiliert aber nicht:<br />
for(int i = 1, int j = 2;<br />
    i&lt;10;<br />
    ++i, ++j)<br />
{<br />
  //...<br />
}<br />
...unexpected int...<br />
<br />
wie kann ich sonst 2 Variablen im FOR-Statement definieren (oder muss ich siie doch vor die FOR-Schleife stellen?<br />
<br />
Danke,<br />
Peter</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>HPB</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365996-schleife-mehrere-initialisierungen.html</guid>
		</item>
		<item>
			<title>char* to CString</title>
			<link>http://www.tutorials.de/c-c/365984-char-cstring.html</link>
			<pubDate>Tue, 07 Sep 2010 08:30:12 GMT</pubDate>
			<description><![CDATA[Hallo  
 
hab eine eigentlich ganz einfache Frage: 
 
Wie kann ich ein char* in einen CString umwandeln oder den Inhalt des char* in einen CString schreiben****  
Habs mit <div class="bbcode_container"> 
                <div class="bbcode_description">Code :</div> 
                <div...]]></description>
			<content:encoded><![CDATA[<div>Hallo <br />
<br />
hab eine eigentlich ganz einfache Frage:<br />
<br />
Wie kann ich ein char* in einen CString umwandeln oder den Inhalt des char* in einen CString schreiben**** <br />
Habs mit <div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>&nbsp; &nbsp; m_strDaten = CString(resp);</pre></td></tr></tbody></table></code><hr />
</div>  probiert (resp ist char* und m_strDaten ist der CString). Da gibt mir aber mein Debugger Access Violation als Fehler retour und beendet!!<br />
<br />
Bitte um Hilfe!!</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>TheTank</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365984-char-cstring.html</guid>
		</item>
		<item>
			<title>Datum abfragen</title>
			<link>http://www.tutorials.de/c-c/365979-datum-abfragen.html</link>
			<pubDate>Mon, 06 Sep 2010 20:57:40 GMT</pubDate>
			<description><![CDATA[Ich habe eine Frage: 
 
Gibt es in C++ die Möglichkeit, das aktuelle Datum abzufragen? Wenn ja wie und was muss ich includen? 
 
(Ich nehme mal an, ich muss Tag, Monat und Jahr einzeln abfragen und dann folgendes machen: )  
<div class="bbcode_container"> 
                <div...]]></description>
			<content:encoded><![CDATA[<div>Ich habe eine Frage:<br />
<br />
Gibt es in C++ die Möglichkeit, das aktuelle Datum abzufragen? Wenn ja wie und was muss ich includen?<br />
<br />
(Ich nehme mal an, ich muss Tag, Monat und Jahr einzeln abfragen und dann folgendes machen: ) <br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>cout &lt;&lt; Tag &lt;&lt; &quot;.&quot; &lt;&lt; Monat &lt;&lt; &quot;.&quot; &lt;&lt; Jahr;</pre></td></tr></tbody></table></code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>Pitri</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365979-datum-abfragen.html</guid>
		</item>
		<item>
			<title>Literaturempfehlung</title>
			<link>http://www.tutorials.de/c-c/365917-literaturempfehlung.html</link>
			<pubDate>Sat, 04 Sep 2010 21:43:09 GMT</pubDate>
			<description>Hallo zusammen, 
 
ich möchte von Java nach C++ wechseln. Ich suche daher ein Buch, welches nicht ganz bei Adam und Eva anfängt und vor allem auch moderne Datenstrukturen wie Hashes, Lists, Collections eben vorführt und Threads sollten auch nicht zu kurz kommen. Vor allem sollte das Buch noch einen...</description>
			<content:encoded><![CDATA[<div>Hallo zusammen,<br />
<br />
ich möchte von Java nach C++ wechseln. Ich suche daher ein Buch, welches nicht ganz bei Adam und Eva anfängt und vor allem auch moderne Datenstrukturen wie Hashes, Lists, Collections eben vorführt und Threads sollten auch nicht zu kurz kommen. Vor allem sollte das Buch noch einen guten, groben überblick über die &quot;aktuellen&quot; Libraries bieten.<br />
<br />
Gibt es da was?<br />
<br />
Danke im Voraus!</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>Schlurchi</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365917-literaturempfehlung.html</guid>
		</item>
		<item>
			<title>Lineare Liste, Elemente hinzufügen und entfernen</title>
			<link>http://www.tutorials.de/c-c/365910-lineare-liste-elemente-hinzufuegen-und-entfernen.html</link>
			<pubDate>Sat, 04 Sep 2010 18:28:18 GMT</pubDate>
			<description><![CDATA[Hallo!  
 
Ich hab hier folgende Aufgabe: 
 
Die Anweisung 
 
 
<div class="bbcode_container"> 
                <div class="bbcode_description">Code :</div> 
                <div class="bbcode_code" style="overflow:auto;padding:0;"><table class="" style="font-family:monospace;"><tbody><tr><td...]]></description>
			<content:encoded><![CDATA[<div>Hallo! <br />
<br />
Ich hab hier folgende Aufgabe:<br />
<br />
Die Anweisung<br />
<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="bbcode_code_highlight"><pre>&nbsp;
Stack fuechse;
&nbsp;
for(int i = 1; i &lt;= 8; i++)
{
&nbsp;
&nbsp; &nbsp; if(getZufallsBit())
&nbsp; &nbsp; &nbsp; &nbsp; fuechse.push(newFix());
&nbsp; &nbsp; else
&nbsp; &nbsp; &nbsp; &nbsp; fuechse.push(newFoxi());
}while(fuechse.pop());</pre></td></tr></tbody></table></code><hr />
</div> <br />
Ausgabe:<br />
<br />
5.Foxi.Objekt<br />
3.Fix.Objekt<br />
2.Fix.Objekt<br />
4.Foxi.Objekt<br />
3.Foxi.Objekt<br />
1.Fix.Objekt<br />
2.Foxi.Objekt<br />
1.Foxi.Objekt<br />
<br />
<br />
Alle Klassen erstellen<br />
-	Stack ist keine Template Klasse<br />
-	Stack soll als lineare Liste implementiert werden<br />
-	Fix und Foxi Objekte werden gezählt. Sie kennen offenbar ihre Nummer<br />
-	pop entnimmt das oberste Element vom Stapel und gibt dessen Wert mit cout aus. <br />
<br />
<br />
<br />
Soviel hab ich zusammenbekommen ^^ :<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
</pre></td><td class="bbcode_code_highlight"><pre>class Stack
{
private:
&nbsp; &nbsp; 
&nbsp; &nbsp; enum {anzahl=8};
&nbsp; &nbsp; string feld&#91;anzahl&#93;;
&nbsp; &nbsp; int top;
&nbsp; &nbsp; 
public:
&nbsp;
&nbsp; &nbsp; Stack ()&nbsp; &nbsp; 
&nbsp; &nbsp; { 
&nbsp; &nbsp; &nbsp; &nbsp; top = 0; 
&nbsp; &nbsp; } &nbsp; 
&nbsp;
&nbsp;
&nbsp; &nbsp; bool push(string objekt)
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if (top == anzahl)
&nbsp; &nbsp; &nbsp; &nbsp; return false; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; else
&nbsp; &nbsp; &nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; feld &#91;top&#93; = objekt;&nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; top++;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; }
&nbsp;
&nbsp;
&nbsp; &nbsp; bool pop()
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; if (top == 0) &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; return false; 
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; else 
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; { 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; top--;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; top &lt;&lt; &quot;\n&quot;;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;
};
&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; string newFix()
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; string s = &quot;Fix.Objekt\n&quot;;
&nbsp; &nbsp; &nbsp; &nbsp; return s;
&nbsp; &nbsp; }
&nbsp;
&nbsp;
&nbsp; &nbsp; string newFoxi()
&nbsp; &nbsp; {
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; string s = &quot;Foxi.Objekt\n&quot;;
&nbsp; &nbsp; &nbsp; &nbsp; return s;
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; }
&nbsp;
bool getZufallsBit()</pre></td></tr></tbody></table></code><hr />
</div> <br />
<br />
Und da es nicht das Ziel der Aufgabe war, mit unendlich laufender Ausgabe + Piepton einen epilleptischen Anfall beim Anwender auszulösen, brauche ich Hilfe!<br />
<br />
In der Aufgabe heißt es &quot;Alle Klassen erstellen&quot;. Sind newfix und newFoxi (Template) Klassen? <br />
Und ich weiß nicht, was getZufallsbit() macht oder eher gesagt, wann es true und wann false ausgeben soll.<br />
<br />
Bitte helft mir :)<br />
<br />
Julie</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>mrs_schokokeks</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365910-lineare-liste-elemente-hinzufuegen-und-entfernen.html</guid>
		</item>
		<item>
			<title>Konsolenprogramm mit UI</title>
			<link>http://www.tutorials.de/c-c/365879-konsolenprogramm-mit-ui.html</link>
			<pubDate>Fri, 03 Sep 2010 19:28:00 GMT</pubDate>
			<description>Hallo Community, 
 
ich würde gerne ein Linux Konsolen Programm schreiben mit einem User Interface. 
Also sowas wie die nicht grafische Installation von Debian oder YAST wenn man es im Konsolenmodus öffnet. 
 
Kann mir da einer helfen oder mir evtl eine Seite mit einem Tutorial sagen? 
Habe Google...</description>
			<content:encoded><![CDATA[<div>Hallo Community,<br />
<br />
ich würde gerne ein Linux Konsolen Programm schreiben mit einem User Interface.<br />
Also sowas wie die nicht grafische Installation von Debian oder YAST wenn man es im Konsolenmodus öffnet.<br />
<br />
Kann mir da einer helfen oder mir evtl eine Seite mit einem Tutorial sagen?<br />
Habe Google schon bemüht und MonoCurse gefunden, aber ich will nicht extra Mono installieren um das ausführen zu können.<br />
<br />
Gruß GalaxyWarrior<br />
<br />
[EDIT]Ich gelobe besserung und werde mein Gehirn vor dem schreiben einschalten ;) Vielleicht komme ich das nächste mal drauf, wenn ich schon MonoCurses finde, einfach ma nach Curses zu suchen[/EDIT]</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>GalaxyWarrior</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365879-konsolenprogramm-mit-ui.html</guid>
		</item>
		<item>
			<title>Vektor mit Iterator durchlaufen</title>
			<link>http://www.tutorials.de/c-c/365875-vektor-mit-iterator-durchlaufen.html</link>
			<pubDate>Fri, 03 Sep 2010 16:29:40 GMT</pubDate>
			<description><![CDATA[Hallo, 
 
ich würde gerne einen Vektor vom Typ einer selbst definierten Klasse mit einem Iterator durchlaufen. 
 
<div class="bbcode_container"> 
                <div class="bbcode_description">Code :</div> 
                <div class="bbcode_code" style="overflow:auto;padding:0;"><table class=""...]]></description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
ich würde gerne einen Vektor vom Typ einer selbst definierten Klasse mit einem Iterator durchlaufen.<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>vector&lt;myClass*&gt; meinVektor;</pre></td></tr></tbody></table></code><hr />
</div> <br />
der Iterator ist demnach folgendermaßen definiert &amp; initialisiert:<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>vector&lt;myClass*&gt;::iterator iter = meinVektor.begin()</pre></td></tr></tbody></table></code><hr />
</div> <br />
wenn ich jedoch auf eine Methode der Klasse zugreifen will<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>iter-&gt;meineMethode();</pre></td></tr></tbody></table></code><hr />
</div> <br />
wird die Anweisung jedoch vom Compiler nicht akzeptiert, da  kein Element &quot;meineMethode&quot; bekannt ist:<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>Z:\***\SimulationCore.h &nbsp; &nbsp; &nbsp;136 error: &nbsp; &nbsp; &nbsp;'getID' has not been declared</pre></td></tr></tbody></table></code><hr />
</div> <br />
Muss ich die Methode zwangsläufig über einen Index ansprechen oder kann ich das auch mit Iteratoren lösen?<br />
<br />
P.S.: Der Vektor hat zu dem Zeitpunkt, an dem der Code ausgeführt wird, natürlich schon Elemente<br />
<br />
Lg,<br />
lgorse</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>lgorse</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365875-vektor-mit-iterator-durchlaufen.html</guid>
		</item>
		<item>
			<title><![CDATA[[C#/C++] DHCP Lease Zeit auslesen und auswerten]]></title>
			<link>http://www.tutorials.de/c-c/365815-c-c-dhcp-lease-zeit-auslesen-und-auswerten.html</link>
			<pubDate>Thu, 02 Sep 2010 12:43:28 GMT</pubDate>
			<description>Hallo Community, 
 
ich schreibe gerade ein Programm, welches erkennen soll, ob der Client eine statische bzw. eine dynamische IP hat.  
 
Ich weiß das klingt sehr seltsam. :) Leider is es notwendig. Das Programm liest die bisherige aktuelle IP aus und stellt sie dar. Da aber die Releasezeit rd. 6...</description>
			<content:encoded><![CDATA[<div>Hallo Community,<br />
<br />
ich schreibe gerade ein Programm, welches erkennen soll, ob der Client eine statische bzw. eine dynamische IP hat. <br />
<br />
Ich weiß das klingt sehr seltsam. :) Leider is es notwendig. Das Programm liest die bisherige aktuelle IP aus und stellt sie dar. Da aber die Releasezeit rd. 6 Tage dauert und man danach wieder die gleiche IP bekommt, ist es noch lange kein Beweis das es sich um eine statische IP handelt. <br />
<br />
Deshalb 2 Fragen:<br />
<br />
1. In C# oder C++ DHCP Lease abfragen<br />
2. DHCP Pakete abfangen und ggf. auslesen? Funktioniert das?<br />
<br />
Ich benötige erstmal Informationen, bzw. kleine Hilfestellung. <br />
<br />
Wäre euch sehr verbunden :)<br />
<br />
Gruß Martin</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>MartinNN89</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365815-c-c-dhcp-lease-zeit-auslesen-und-auswerten.html</guid>
		</item>
		<item>
			<title>Suche Buch zu Irrlicht / 3D-Engine allgemein</title>
			<link>http://www.tutorials.de/c-c/365805-suche-buch-zu-irrlicht-3d-engine-allgemein.html</link>
			<pubDate>Thu, 02 Sep 2010 09:38:14 GMT</pubDate>
			<description>Moin zusammen, 
 
ich möchte mich genauer in die 3D-Engine Irrlicht einarbeiten und bin hierzu auf der Suche nach einem geeigneten Buch (ja, diese altmodischen Dinger mit dem vielen Papier ;) ). 
Alternativ auch zu 3D-Engines allgemein (ich denke hier ist vieles übertragbar (?) ). Das ganze wird in...</description>
			<content:encoded><![CDATA[<div>Moin zusammen,<br />
<br />
ich möchte mich genauer in die 3D-Engine Irrlicht einarbeiten und bin hierzu auf der Suche nach einem geeigneten Buch (ja, diese altmodischen Dinger mit dem vielen Papier ;) ).<br />
Alternativ auch zu 3D-Engines allgemein (ich denke hier ist vieles übertragbar (?) ). Das ganze wird in einem Projekt verwendet, als Programmiersprache wird C++ verwendet.<br />
Momentan würde ich zu diesem tendieren: <a href="http://www.amazon.de/Texturing-Modeling-w-CD-ROM-Procedural/dp/0122287304/ref=ed_oe_h" target="_blank">http://www.amazon.de/Texturing-Model...04/ref=ed_oe_h</a> (eingl. habe ich es schon gekauft, nur glaube ich langsam nicht mehr, dass es ankommt, was aber wieder eine andere Geschichte wäre ;) ). Ich weiß, dass es dazu eine neuere Version gibt. Aber würde diese den Preisunterschied (bezogen auf gebrauchte Bücher) von fast 50&#8364; rechtfertigen?<br />
<br />
Ich freue mich über Vorschläge!<br />
<br />
Vielen Dank.<br />
<br />
<br />
Gruß,<br />
<br />
badday</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>badday</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365805-suche-buch-zu-irrlicht-3d-engine-allgemein.html</guid>
		</item>
		<item>
			<title><![CDATA[[C++]WinMain()  später laden]]></title>
			<link>http://www.tutorials.de/c-c/365780-c-winmain-spaeter-laden.html</link>
			<pubDate>Wed, 01 Sep 2010 16:50:31 GMT</pubDate>
			<description>Hallo Community, 
 
ich habe eine WinMain() mit einem Fenster. 
Und auch eine main() mit ein paar SFML Fenstern. 
Nun möchte ich die WinMain() in der main() laden. 
Das geht leider nicht da ich nicht die richtigen Paramater kenne die ich  
der Funktion übermitteln muss. Wie bekomme ich die...</description>
			<content:encoded><![CDATA[<div>Hallo Community,<br />
<br />
ich habe eine WinMain() mit einem Fenster.<br />
Und auch eine main() mit ein paar SFML Fenstern.<br />
Nun möchte ich die WinMain() in der main() laden.<br />
Das geht leider nicht da ich nicht die richtigen Paramater kenne die ich <br />
der Funktion übermitteln muss. Wie bekomme ich die WinMain() in der main() geladen<br />
oder ist das nicht möglich?<br />
<br />
Vielen Dank im Voraus, Ninjasturm.</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>Ninjasturm</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365780-c-winmain-spaeter-laden.html</guid>
		</item>
		<item>
			<title><![CDATA[[C++/WinApi] Text-Stream anzeigen -> wie?]]></title>
			<link>http://www.tutorials.de/c-c/365776-c-winapi-text-stream-anzeigen-wie.html</link>
			<pubDate>Wed, 01 Sep 2010 15:33:34 GMT</pubDate>
			<description><![CDATA[Hallo, 
 
Ich programmier noch nicht lange in C++/WinApi (keine MFC). Finde im Google keine brauchbaren Ergebnisse über Text-Stream Ausgabe, darum hab ich mich mal an ein Forum gewandt. 
 
Wie kann man einen Text-Stream "printen" lassen? 
 
Funktionsweise soll so wie beim CMD-Fenster ein...]]></description>
			<content:encoded><![CDATA[<div>Hallo,<br />
<br />
Ich programmier noch nicht lange in C++/WinApi (keine MFC). Finde im Google keine brauchbaren Ergebnisse über Text-Stream Ausgabe, darum hab ich mich mal an ein Forum gewandt.<br />
<br />
Wie kann man einen Text-Stream &quot;printen&quot; lassen?<br />
<br />
Funktionsweise soll so wie beim CMD-Fenster ein printf(&quot;abc\n&quot;); sein. Und halt nicht vom User veränderbar (Readonly).<br />
<br />
Programm läuft unter Windows und wird mit VC++ 2010 erstellt.</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>posi90</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365776-c-winapi-text-stream-anzeigen-wie.html</guid>
		</item>
		<item>
			<title>SIGSEV Problem</title>
			<link>http://www.tutorials.de/c-c/365766-sigsev-problem.html</link>
			<pubDate>Wed, 01 Sep 2010 13:41:46 GMT</pubDate>
			<description>Hi Leute, 
 
ich habe mal wieder ein Problem bei meinem Gstreamer Plugin bei dem ich im Moment nicht weiterkomme. Ich bekomme ab und an während der Ausführung einen SIGSEGV geschmissen, allerdings konnten mir bisher weder gdb noch valgrind weiterhelfen. Vielleicht hat einer von euch eine Idee. ...</description>
			<content:encoded><![CDATA[<div>Hi Leute,<br />
<br />
ich habe mal wieder ein Problem bei meinem Gstreamer Plugin bei dem ich im Moment nicht weiterkomme. Ich bekomme ab und an während der Ausführung einen SIGSEGV geschmissen, allerdings konnten mir bisher weder gdb noch valgrind weiterhelfen. Vielleicht hat einer von euch eine Idee. <br />
Laut gdb tritt der Fehler in folgender Zeile meines Programms auf:<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code cpp:</div>
                <hr /><code class="bbcode_code"><table class="cpp" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>xmltio<span style="color: #008080;">::</span><span style="color: #007788;">Location</span> templateloc<span style="color: #008000;">&#40;</span>TEMPLATE, <span style="color: #FF0000;">&quot;SOUND&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span></pre></td></tr></tbody></table></code><hr />
</div> <br />
Wobei TEMPLATE folgendes ist:<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code cpp:</div>
                <hr /><code class="bbcode_code"><table class="cpp" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
</pre></td><td class="bbcode_code_highlight"><pre><span style="color: #0000ff;">const</span> std<span style="color: #008080;">::</span><span style="color: #007788;">string</span> TEMPLATE <span style="color: #000080;">=</span>
&nbsp; &nbsp; <span style="color: #FF0000;">&quot;&lt;SOUND&gt;&quot;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">&quot;&lt;DURATION timeInSeconds=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span>/&gt;&quot;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #FF0000;">&quot;&lt;FREQUENCIES nrValues=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span> value0=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span> value1=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span> value2=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span> value3=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span> value4=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span> value5=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span>/&gt;&quot;</span>
&nbsp; &nbsp; <span style="color: #FF0000;">&quot;&lt;/SOUND&gt;&quot;</span><span style="color: #008080;">;</span></pre></td></tr></tbody></table></code><hr />
</div> <br />
Und valgrind sagt mir folgendes:<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
</pre></td><td class="bbcode_code_highlight"><pre>valgrind: m_mallocfree.c:210 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed.
valgrind: Heap block lo/hi size mismatch: lo = 4288479132, hi = 1632849498.
Probably caused by overrunning/underrunning a heap block's bounds.</pre></td></tr></tbody></table></code><hr />
</div> <br />
Ich hänge das Plugin mal als zip an diesen Post an, falls jemand Interesse hat da rein zu schauen. Im Moment sind mir die Ideen ausgegangen. Kann sein, dass ich Fehler bei der Verwendung der std::vector - en mache, dass kann gut sein. <br />
<br />
Ich teste das Plugin im Moment mit folgender Kette:<br />
<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
</pre></td><td class="bbcode_code_highlight"><pre>gst-launch-0.10 alsasrc device=plug:hw:1 ! audioanalyse ! alsasink</pre></td></tr></tbody></table></code><hr />
</div> <br />
Falls jemand das selbst ausprobieren will, braucht er zum kompilieren die gstreamer libs und die xmltio lib.<br />
<br />
Gruß<br />
Der Wolf</div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Angehängte Dateien</legend>
			<ul>
			<li>
	<img class="inlineimg" src="/zip.gif" alt="Dateityp: zip" />
	<a href="http://www.tutorials.de/attachments/c-c/54352d1283348502-gstaudioanalyse.zip">GstAudioAnalyse.zip</a> 
(9,9 KB)
</li> 
			</ul>
		</fieldset>
	

	</div>
 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>Der Wolf</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365766-sigsev-problem.html</guid>
		</item>
		<item>
			<title>Element am Anfang einer einfach verketteten listen</title>
			<link>http://www.tutorials.de/c-c/365756-element-am-anfang-einer-einfach-verketteten-listen.html</link>
			<pubDate>Wed, 01 Sep 2010 08:19:12 GMT</pubDate>
			<description>Hi, 
bin neu hier und hab ein kleines Problem bei dem ich nicht weiterkomm. Wir sollen im Rahmen einer Belegarbeit ein Programm schreiben welches an einer einfach verketteten Liste ein Element am Anfang,am Ende und sortiert einfügen kann, später dann auf bei doppelt verketteten. Ich bin nun soweit...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
bin neu hier und hab ein kleines Problem bei dem ich nicht weiterkomm. Wir sollen im Rahmen einer Belegarbeit ein Programm schreiben welches an einer einfach verketteten Liste ein Element am Anfang,am Ende und sortiert einfügen kann, später dann auf bei doppelt verketteten. Ich bin nun soweit das meins am Ende anhängen kann. Nun scheitere ich daran etwas am Anfang an zu hängen.<br />
<div class="bbcode_container">
                <div class="bbcode_description">Code :</div>
                <hr /><code class="bbcode_code"><table class="" style="font-family:monospace;"><tbody><tr><td class="bbcode_code_linenumbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="bbcode_code_highlight"><pre>void anhanganf(int alter,float gewicht, char name&#91;&#93;,char nname&#91;&#93;)
{
&nbsp; &nbsp;struct person *ptr;
&nbsp; &nbsp;ptr-&gt;next=first;
&nbsp; &nbsp;first=ptr;
&nbsp; &nbsp;strcpy(first-&gt;name,name);
&nbsp; &nbsp;strcpy (first-&gt;nname,nname);
&nbsp; &nbsp;first-&gt;gewicht= gewicht;
&nbsp; &nbsp;first-&gt;alter = alter;
&nbsp; &nbsp; &nbsp;
&nbsp;
}</pre></td></tr></tbody></table></code><hr />
</div> Wenn ich das Programm so ausführe erscheint folgendes.<br />
<a href="http://www.bilder-upload.eu/show.php?file=ycL5F1zxx4gQy3N.jpg" target="_blank">http://www.bilder-upload.eu/show.php...1zxx4gQy3N.jpg</a><br />
Die Namen in Liste 2 und 3 wurde vorher schon in der Liste am Ende eingefügt der Name in der 1. wurde durch benutzer eingegeben. Würde ich noch ein weiteres mal einen Namen eingeben spielt das Programm total verrückt. :rolleyes:<br />
Was mach ich verkehrt? Bin für jeden Tip dankbar. :)</div>

 ]]></content:encoded>
			<category domain="http://www.tutorials.de/c-c/">C/C++</category>
			<dc:creator>Rene0387</dc:creator>
			<guid isPermaLink="true">http://www.tutorials.de/c-c/365756-element-am-anfang-einer-einfach-verketteten-listen.html</guid>
		</item>
	</channel>
</rss>
