<?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[error C2064: Ausdruck ergibt keine Funktion]]></title><description><![CDATA[<p>hi! mein code:</p>
<pre><code>int d2i(double d)
{
  return (int) (d&lt;0?d-.5:d+.5);
}

[b]int spitze(int x)
{
	int r = 100;
	int m = 2;
	int ret;
	if(x &lt;= r){ ret = d2i(m*x + 200);}
	else{ ret = d2i((-1)*m*x + 400);}
	return ret;
}[/b]

void CLichtleiterDlg::OnSelchangeSpitze() 
{
	UpdateData(TRUE);
	CString spitze = m_spitze;
	spitze.MakeUpper();

	if(spitze == &quot;PARABEL&quot;) 
	{
//bla
	}
	else if (spitze == &quot;KREIS&quot;) 
	{
//bla
	}
	else if (spitze == &quot;SPITZE&quot;) 
	{
		CClientDC dc(this);
		CPen *oldpen = NULL;
		CPen RedPen(PS_SOLID,1,RGB(0,0,0));
		oldpen = dc.SelectObject(&amp;RedPen);
		int x = -98;
		while(x &lt; 100)
		{

			[b]dc.SetPixel(koords(x,spitze(x)), RGB(0,0,0));[/b]
			//dc.MoveTo(koords(x-1,spitze(x-1)));
			//dc.LineTo(koords(x,spitze(x)));
			x++;
		}
	}
	else 
	{
		MessageBox(&quot;fehler&quot;);	
		m_spitze = &quot;Parabel&quot;;
		UpdateData(FALSE);
	}

}
</code></pre>
<p>wenn ich das kompilieren will kommt immer der fehler<br />
error C2064: Ausdruck ergibt keine Funktion<br />
weiß jemand warum? irgendwie lässt sich die funktion spitze() nicht aufrufen, auch wenn ich mal mach int abc = spitze(5); kommt dieser fehler...<br />
Danke schonmal, Misc2</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/194847/error-c2064-ausdruck-ergibt-keine-funktion</link><generator>RSS for Node</generator><lastBuildDate>Tue, 29 Sep 2026 17:00:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/194847.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Oct 2007 13:42:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error C2064: Ausdruck ergibt keine Funktion on Thu, 11 Oct 2007 13:42:59 GMT]]></title><description><![CDATA[<p>hi! mein code:</p>
<pre><code>int d2i(double d)
{
  return (int) (d&lt;0?d-.5:d+.5);
}

[b]int spitze(int x)
{
	int r = 100;
	int m = 2;
	int ret;
	if(x &lt;= r){ ret = d2i(m*x + 200);}
	else{ ret = d2i((-1)*m*x + 400);}
	return ret;
}[/b]

void CLichtleiterDlg::OnSelchangeSpitze() 
{
	UpdateData(TRUE);
	CString spitze = m_spitze;
	spitze.MakeUpper();

	if(spitze == &quot;PARABEL&quot;) 
	{
//bla
	}
	else if (spitze == &quot;KREIS&quot;) 
	{
//bla
	}
	else if (spitze == &quot;SPITZE&quot;) 
	{
		CClientDC dc(this);
		CPen *oldpen = NULL;
		CPen RedPen(PS_SOLID,1,RGB(0,0,0));
		oldpen = dc.SelectObject(&amp;RedPen);
		int x = -98;
		while(x &lt; 100)
		{

			[b]dc.SetPixel(koords(x,spitze(x)), RGB(0,0,0));[/b]
			//dc.MoveTo(koords(x-1,spitze(x-1)));
			//dc.LineTo(koords(x,spitze(x)));
			x++;
		}
	}
	else 
	{
		MessageBox(&quot;fehler&quot;);	
		m_spitze = &quot;Parabel&quot;;
		UpdateData(FALSE);
	}

}
</code></pre>
<p>wenn ich das kompilieren will kommt immer der fehler<br />
error C2064: Ausdruck ergibt keine Funktion<br />
weiß jemand warum? irgendwie lässt sich die funktion spitze() nicht aufrufen, auch wenn ich mal mach int abc = spitze(5); kommt dieser fehler...<br />
Danke schonmal, Misc2</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382867</guid><dc:creator><![CDATA[Misc2]]></dc:creator><pubDate>Thu, 11 Oct 2007 13:42:59 GMT</pubDate></item><item><title><![CDATA[Reply to error C2064: Ausdruck ergibt keine Funktion on Thu, 11 Oct 2007 13:46:33 GMT]]></title><description><![CDATA[<p>Du hast eine lokale Variable 'CString spitze = m_spitze;' definiert, die deine globale Funktion verdeckt - wenn du diese weglässt oder umbenennst, sollte es wieder funktionieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382871</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 11 Oct 2007 13:46:33 GMT</pubDate></item><item><title><![CDATA[Reply to error C2064: Ausdruck ergibt keine Funktion on Thu, 11 Oct 2007 13:47:17 GMT]]></title><description><![CDATA[<p>Du hast einen CString mit Namen <em>spitze</em>, daher gibts da ne Doppeldeutigkeit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382873</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382873</guid><dc:creator><![CDATA[crashterpiece]]></dc:creator><pubDate>Thu, 11 Oct 2007 13:47:17 GMT</pubDate></item><item><title><![CDATA[Reply to error C2064: Ausdruck ergibt keine Funktion on Thu, 11 Oct 2007 13:49:58 GMT]]></title><description><![CDATA[<p>bin ich blöd ^^<br />
danke!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382875</guid><dc:creator><![CDATA[Misc2]]></dc:creator><pubDate>Thu, 11 Oct 2007 13:49:58 GMT</pubDate></item></channel></rss>