<?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[::GetWindowsDirectory();]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich seh öfters GetWindowsDirectory() -&gt; ::GetWindowsDirectory(); geschrieben warum diese &quot;::&quot;? +</p>
<p>gruss,<br />
smi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/145737/getwindowsdirectory</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 03:30:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/145737.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Apr 2006 18:07:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ::GetWindowsDirectory(); on Sun, 30 Apr 2006 18:07:55 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Ich seh öfters GetWindowsDirectory() -&gt; ::GetWindowsDirectory(); geschrieben warum diese &quot;::&quot;? +</p>
<p>gruss,<br />
smi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048542</guid><dc:creator><![CDATA[komisch]]></dc:creator><pubDate>Sun, 30 Apr 2006 18:07:55 GMT</pubDate></item><item><title><![CDATA[Reply to ::GetWindowsDirectory(); on Sun, 30 Apr 2006 19:09:33 GMT]]></title><description><![CDATA[<p>Soweit ich weiß kannst du das bei jeder WinAPI-Funktion machen...Damit sagt du dem Compiler das die Defintion/Funktion im globalen Namensbereich steht...bin mir aber nit ganz sicher</p>
<p>MfG CodeFinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048572</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Sun, 30 Apr 2006 19:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to ::GetWindowsDirectory(); on Sun, 30 Apr 2006 19:39:17 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;windows.h&gt;

class LOLClass {

	char szBuffer[256];

	// GetWindowsDirectory Funktion von LOLClass
	UINT GetWindowsDirectory( LPTSTR lpBuffer, UINT nSize )
	{	
		return MessageBox( NULL, &quot;GetWindowsDirectory von LOLClass&quot;, &quot;&quot;, 0 );
	}

public:
	UINT Die_LOL_Funktion( VOID )
	{
		// ruft die GetWindowsDirectory funktion aus LOLClass auf
		GetWindowsDirectory( NULL, 0 );

		// ruft die GetWindowsDirectory WinAPI funktion auf
		::GetWindowsDirectory( szBuffer, sizeof(szBuffer) );

		return 1;
	}
};

int main(void)
{
	LOLClass LOL;

	LOL.Die_LOL_Funktion();

    return 0;
}
</code></pre>
<p>Du kannst innerhalb einer Klasse eine Funktion definieren, auch wenn außerhalb der Klasse schon eine Funktion mit genau dem gleichen Namen und Parametern existiert. Mit :: teilst du dann mit, ob du gerade die Funktion außerhalb oder die Memberfunktion der Klasse meinst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1048584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1048584</guid><dc:creator><![CDATA[WebNubbi]]></dc:creator><pubDate>Sun, 30 Apr 2006 19:39:17 GMT</pubDate></item></channel></rss>