<?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[Punkte ausgeben]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein keines Anfängerproblem bei der Ausgabe von Punkten auf dem Bildschirm.<br />
Mein Problem:<br />
Habe eine parametisierte Funktion und will nun die x und y-Werte auf dem Bildschrim ausgeben lassen, wobei die Punkte noch nicht mal unbedingt verbunden sein müssen. Ich will aber eine Art Koordiantensystem haben.<br />
Leider komme ich aber mit Microsoft Visual C++ nur bis zur Generierung eines Hallo Welt fensters, wo ich noch nicht mal durchblicke wie man das Hallo Welt in den leeren Fenster bearbeiten kann:(<br />
Hoffe ihr könnt mir ein bisschen helfen, sei es durch einen Link zu ein guten Tutorial oder einer schönen Erklärung eurer seits.</p>
<p>Vielen Dank für eure Hilfe<br />
MfG<br />
Stefan</p>
<p>PS: Hatte das schonmal im C++ Teil gepostet, dort wurde ich dann hier hin verwiesen. Sry wegen Doppelpost</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/106389/punkte-ausgeben</link><generator>RSS for Node</generator><lastBuildDate>Mon, 29 Jun 2026 19:04:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/106389.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Apr 2005 12:37:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Punkte ausgeben on Sat, 09 Apr 2005 12:37:27 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein keines Anfängerproblem bei der Ausgabe von Punkten auf dem Bildschirm.<br />
Mein Problem:<br />
Habe eine parametisierte Funktion und will nun die x und y-Werte auf dem Bildschrim ausgeben lassen, wobei die Punkte noch nicht mal unbedingt verbunden sein müssen. Ich will aber eine Art Koordiantensystem haben.<br />
Leider komme ich aber mit Microsoft Visual C++ nur bis zur Generierung eines Hallo Welt fensters, wo ich noch nicht mal durchblicke wie man das Hallo Welt in den leeren Fenster bearbeiten kann:(<br />
Hoffe ihr könnt mir ein bisschen helfen, sei es durch einen Link zu ein guten Tutorial oder einer schönen Erklärung eurer seits.</p>
<p>Vielen Dank für eure Hilfe<br />
MfG<br />
Stefan</p>
<p>PS: Hatte das schonmal im C++ Teil gepostet, dort wurde ich dann hier hin verwiesen. Sry wegen Doppelpost</p>
]]></description><link>https://www.c-plusplus.net/forum/post/762952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/762952</guid><dc:creator><![CDATA[*-STORM-*]]></dc:creator><pubDate>Sat, 09 Apr 2005 12:37:27 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Sat, 09 Apr 2005 16:05:49 GMT]]></title><description><![CDATA[<p>Hab inzwischen eine Seite gefunden wo einieges erklärt wird. Nun erhalte ich aber komische Fehlermeldungen und hoffe das ihr mir weiter helfen könntet:</p>
<pre><code class="language-cpp">#include&lt;windows.h&gt;
#include&lt;cmath&gt;

LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	HDC hdc;
	PAINTSTRUCT ps;
	int RADIUS=10,alpha;

	switch(message)
	{
	case WM_PAINT:
		hdc=BeginPaint(hwnd,&amp;ps); //Gerätekontext

		for(alpha=0;alpha&lt;=360;alpha++)
		{
			SetPixel(hdc,100+int(RADIUS*sin(alpha)),100+int(RADIUS*cos(alpha)),RGB(255,0,0));
		}

		EndPaint(hwnd,&amp;ps);
		return 0;
	case WM_DESTROY:
		PostQuitMessage(0);
		return 0;
	}
	return DefWindowProc(hwnd,message,wParam,lParam);
}

int WINAPI WinMain(HINSTANCE hI, HINSTANCE hPrI,PSTR szCmdLine,int iCmdShow)
{
	static TCHAR szName[]=TEXT(&quot;Fensterklasse&quot;);
	HWND hwnd;
	WNDCLASS wc;
	wc.style			=CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;
	wc.lpfnWndProc		=WndProc;
	wc.cbClsExtra		=0;
	wc.cbWndExtra		=0;
	wc.hInstance		=hI;
	wc.hIcon			=LoadIcon(NULL,IDI_WINLOGO);
	wc.hCursor			=LoadCursor(NULL,IDC_ARROW);
	wc.hbrBackground	=(HBRUSH)GetStockObject(WHITE_BRUSH);
	wc.lpszMenuName		=NULL;
	wc.lpszClassName	=szName;
	RegisterClass(&amp;wc);
	hwnd=CreateWindow(szName,TEXT(&quot;Punkt setzen&quot;),WS_OVERLAPPEDWINDOW,0,0,200,200,NULL,NULL,hI,NULL);
	ShowWindow(hwnd,iCmdShow);
	UpdateWindow(hwnd);
	MSG msg;
	while(GetMessage(&amp;msg,NULL,0,0))
	{
		TranslateMessage(&amp;msg);
		DispatchMessage(&amp;msg);
	}
	return msg.wParam;
}
</code></pre>
<p>folgende Fehlermeldungen bekomme ich:</p>
<pre><code>--------------------Konfiguration: main - Win32 Debug--------------------
Linker-Vorgang läuft...
LIBCD.lib(crt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _main
Debug/main.exe : fatal error LNK1120: 1 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.

main.exe - 2 Fehler, 0 Warnung(en)
</code></pre>
<p>Wisst ihr was damit anzufangen?</p>
<p>MfG<br />
Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763070</guid><dc:creator><![CDATA[*-STORM-*]]></dc:creator><pubDate>Sat, 09 Apr 2005 16:05:49 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Sat, 09 Apr 2005 17:19:51 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=275" rel="nofollow">Unix-Tom</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=1" rel="nofollow">MFC mit dem Visual C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" 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/763116</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763116</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 09 Apr 2005 17:19:51 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Sat, 09 Apr 2005 17:41:51 GMT]]></title><description><![CDATA[<p>Mach eine Windows- und keine Konsolenanwendung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763135</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763135</guid><dc:creator><![CDATA[YASC]]></dc:creator><pubDate>Sat, 09 Apr 2005 17:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Sat, 09 Apr 2005 18:12:04 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/4921">@Mod</a><br />
Werd ich das nächtse mal beachten, Danke</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/8069">@YASC</a><br />
Nachdem ich eine neue Windowsanwendung erstellte und den Code kopierte hat es wieder geklappt. Bin jetzt aber bei einen neuen Problem, ich finde sagen wir mal den Punkt P_1 und als nächstes P_2, dann will ich die beiden Punkte verbinden lassen und dann den P_2 mit P_3 verbinden usw.. Kann man dies mit<br />
MoveToEx und LinTo machen? Bei mir hat es irgend wie nicht wirklich geklappt?</p>
<p>MfG<br />
Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763147</guid><dc:creator><![CDATA[*-STORM-*]]></dc:creator><pubDate>Sat, 09 Apr 2005 18:12:04 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Sun, 10 Apr 2005 18:54:57 GMT]]></title><description><![CDATA[<p>|-STORM-| schrieb:</p>
<blockquote>
<p>Kann man dies mit MoveToEx und LinTo machen? Bei mir hat es irgend wie nicht wirklich geklappt?</p>
</blockquote>
<p>Sollte aber <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="😉"
    /> - wie hast du es denn gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763608</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 10 Apr 2005 18:54:57 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Sun, 10 Apr 2005 20:03:23 GMT]]></title><description><![CDATA[<p>Hab es jetzt hinbekommen, hatte blos folgend Bedingung für den Radius:</p>
<pre><code class="language-cpp">if(Radius%36=0) Radius=Radius-2
</code></pre>
<p>änderte dies jetzt zu</p>
<pre><code class="language-cpp">if(Radius&gt;0.01)
{
Radius=Radius-(1/(360*alpha));
}
else
{
Radius=Radius+275;
};
</code></pre>
<p>um. Sieht jetzt ungefähr so aus:<br />
<a href="http://img126.echo.cx/img126/3195/bild15mw.gif" rel="nofollow">http://img126.echo.cx/img126/3195/bild15mw.gif</a><br />
Mein Problem war, dass die Linien zwar verbunden wurden, aber es bei bestimmtem Stellen sehr große &quot;Sprünge&quot; gab, was ich aber dann halt mit einer anderen Bestimmung vom Radius verbesserte.</p>
<p>Aber jetzt klappt ja alles, hab auch schon ein Feigendiagramm erstellt *freu*, dass nächste wird eine Mandelbrotmenge oder eine Juliamenge.<br />
<a href="http://img202.echo.cx/img202/6476/bild18he.gif" rel="nofollow">http://img202.echo.cx/img202/6476/bild18he.gif</a></p>
<p>MfG<br />
Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763664</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763664</guid><dc:creator><![CDATA[*-STORM-*]]></dc:creator><pubDate>Sun, 10 Apr 2005 20:03:23 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Mon, 11 Apr 2005 14:21:41 GMT]]></title><description><![CDATA[<p>GDI+ kann übrigens auch geglättete Linien zeichnen <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=";D"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/764096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/764096</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Mon, 11 Apr 2005 14:21:41 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Mon, 11 Apr 2005 14:43:24 GMT]]></title><description><![CDATA[<p>geht das dann mit Polyline?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/764117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/764117</guid><dc:creator><![CDATA[*-STORM-*]]></dc:creator><pubDate>Mon, 11 Apr 2005 14:43:24 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Mon, 11 Apr 2005 17:12:25 GMT]]></title><description><![CDATA[<p>|-STORM-| schrieb:</p>
<blockquote>
<p>geht das dann mit Polyline?</p>
</blockquote>
<p>Den Zusammenhang zwischen Polyline und GDI+ verstehe ich irgendwie nicht so recht <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>
<p>Also es gibt eben in GDI <a href="http://msdn.microsoft.com/library/en-us/gdi/linecurv_10bp.asp" rel="nofollow">Polyline</a> und bei GDI+ <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdicpp/GDIPlus/GDIPlusreference/classes/graphicsclass/graphicsmethods/graphicsdrawpolygonmethods.asp" rel="nofollow">DrawPolygon</a> <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/764232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/764232</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 11 Apr 2005 17:12:25 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Mon, 11 Apr 2005 18:59:06 GMT]]></title><description><![CDATA[<p>...und GDI+ hat noch DrawLines().<br />
Ich wollte darauf hinaus, das bei den GDI+ Funktionen Linien nicht so &quot;pixelig&quot; gezeichnet werden wie bei GDI... (jaja, ich mag GDI+ ;D)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/764306</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/764306</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Mon, 11 Apr 2005 18:59:06 GMT</pubDate></item><item><title><![CDATA[Reply to Punkte ausgeben on Mon, 11 Apr 2005 20:54:33 GMT]]></title><description><![CDATA[<p>Das mit DrawPolygon war ein Versehen, meinte eigentlich auch DrawLines - hatte mich in der Eile wohl irgendwie verlesen <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/764409</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/764409</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 11 Apr 2005 20:54:33 GMT</pubDate></item></channel></rss>