<?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[Funktionen zeichnen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin auf der Suche nach einer simplen Methode mit Hilfe von C++<br />
eine Funktion zu zeichnen.<br />
Ich habe es bereits mit Gdi probiert, jedoch bin ich zu keinem Vernünftigen Ergebnis gekommen...</p>
<p>Es wäre schön, wenn jemand einen Vorschlag hätte!</p>
<p>Vielen Dank im Vorraus!</p>
<p>jackiechan</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/193185/funktionen-zeichnen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 14:22:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/193185.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Sep 2007 15:56:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktionen zeichnen on Sun, 23 Sep 2007 15:56:23 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin auf der Suche nach einer simplen Methode mit Hilfe von C++<br />
eine Funktion zu zeichnen.<br />
Ich habe es bereits mit Gdi probiert, jedoch bin ich zu keinem Vernünftigen Ergebnis gekommen...</p>
<p>Es wäre schön, wenn jemand einen Vorschlag hätte!</p>
<p>Vielen Dank im Vorraus!</p>
<p>jackiechan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371081</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371081</guid><dc:creator><![CDATA[jackiechan]]></dc:creator><pubDate>Sun, 23 Sep 2007 15:56:23 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen zeichnen on Sun, 23 Sep 2007 17:46:38 GMT]]></title><description><![CDATA[<p>Poste mal was du bis jetzt hast, dann kann dir vielleicht einer tipps geben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371141</guid><dc:creator><![CDATA[Gator]]></dc:creator><pubDate>Sun, 23 Sep 2007 17:46:38 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen zeichnen on Mon, 24 Sep 2007 08:39:40 GMT]]></title><description><![CDATA[<p>Ich war so weit, dass ich per GDI Linien zeichnen konnte auch die Rechnung war so weit als Array vorhanden, aber wie kann man nun die beiden Komponenten zusamenführen.</p>
<p>Ich poste später nochmal den komletten Script...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1371396</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371396</guid><dc:creator><![CDATA[jackiechan]]></dc:creator><pubDate>Mon, 24 Sep 2007 08:39:40 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen zeichnen on Mon, 24 Sep 2007 08:46:59 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">http://www.c-plusplus.net/forum/viewtopic-var-t-is-128603.html
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1371402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1371402</guid><dc:creator><![CDATA[Helfender Helfer]]></dc:creator><pubDate>Mon, 24 Sep 2007 08:46:59 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen zeichnen on Tue, 25 Sep 2007 17:19:41 GMT]]></title><description><![CDATA[<p>Folgendes hab ich nun um eine Linie zu zeichnen...</p>
<p>Warum zeigt er ein Fehler beim kompelieren an, wenn ich a und b einsetze?<br />
Ich debutze Devc++ auf Vista.</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;iostream&gt;
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow )
{
WNDCLASS WndClass;
WndClass.style = 0;
WndClass.cbClsExtra = 0;
WndClass.cbWndExtra = 0;
WndClass.lpfnWndProc = WndProc;
WndClass.hInstance = hInstance;
WndClass.hbrBackground = (HBRUSH) (COLOR_WINDOW+1);
WndClass.hCursor = LoadCursor (NULL, IDC_ARROW);
WndClass.hIcon = LoadIcon (NULL, IDI_APPLICATION);
WndClass.lpszMenuName = 0;
WndClass.lpszClassName = &quot;WinProg&quot;;
RegisterClass(&amp;WndClass);
HWND hWindow;

hWindow = CreateWindow(&quot;WinProg&quot;,&quot;Fenster&quot;,
WS_OVERLAPPEDWINDOW,
0,0,600,460,NULL,NULL,
hInstance, NULL);
ShowWindow (hWindow, nCmdShow);
UpdateWindow (hWindow);
MSG Message;
while (GetMessage(&amp;Message, NULL, 0, 0))
{
DispatchMessage(&amp;Message);
}
return (Message.wParam);
}
LRESULT CALLBACK WndProc (HWND hWnd, UINT uiMessage,
WPARAM wParam,LPARAM lParam)
{
switch(uiMessage)
{
case WM_PAINT:
HPEN hPen;
HPEN hPenalt;
HBRUSH hBrush;
HBRUSH hBrushalt;
hBrush = CreateSolidBrush (RGB(255,100,0));
hPen = CreatePen (PS_SOLID,2,RGB(0,255,255));
HDC hdc;
PAINTSTRUCT ps;
hdc = BeginPaint (hWnd, &amp;ps);

// ohne Definition von a und b funktioniers...

int a  = 20;
int b  = 100;

MoveToEx (hdc, a, a, NULL);
LineTo (hdc, b, b);

EndPaint (hWnd, &amp;ps);
return 0;
case WM_DESTROY:
PostQuitMessage(0);
return 0;
default:
return DefWindowProc (hWnd, uiMessage,
wParam, lParam);
}
}
</code></pre>
<p>Vielen Dank im Vorraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372549</guid><dc:creator><![CDATA[jackiechan]]></dc:creator><pubDate>Tue, 25 Sep 2007 17:19:41 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen zeichnen on Tue, 25 Sep 2007 17:40:26 GMT]]></title><description><![CDATA[<p>welche Fehler?</p>
<p>Es könnte auch sein,dass die Parametertypen nicht mit den vorgegebenen übereinstimmen, zbsp. wäre eine Vorgabe:</p>
<pre><code class="language-cpp">MoveToEx (char, double, double, const char&amp;);
</code></pre>
<p>Stimmt natürlich nicht, aber wollte dir nur damit klar machen, was ich meine <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/1372565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372565</guid><dc:creator><![CDATA[XP*]]></dc:creator><pubDate>Tue, 25 Sep 2007 17:40:26 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen zeichnen on Tue, 25 Sep 2007 19:49:28 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372660</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372660</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 25 Sep 2007 19:49:28 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen zeichnen on Wed, 26 Sep 2007 10:43:33 GMT]]></title><description><![CDATA[<p>Setz mal alles was zur &quot;case WM_PAINT&quot; gehört in geschweifte Klammern {}.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1372961</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1372961</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 26 Sep 2007 10:43:33 GMT</pubDate></item></channel></rss>