<?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[Verzeichnis der DLL bekommen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine DLL, von der ich das verzeichnis mithilfe der DllMain funktion bekommen würde.</p>
<p>das habe ich bereits:</p>
<pre><code class="language-cpp">BOOL APIENTRY DllMain( HMODULE hModule, DWORD reason, LPVOID lpReserved )
{
	switch(reason)
	{
		case DLL_PROCESS_ATTACH: 
			DisableThreadLibraryCalls( hModule ); 
			char dlldir[] = &quot;&quot;;
                        GetModuleFileNameA(hModule, dlldir, sizeof(dlldir));
                        MessageBox(NULL, dlldir, &quot;LIZ!&quot;, MB_OK);
			break;
	}

	return TRUE;
}
</code></pre>
<p>funktioniert prima:</p>
<p>DOCH: ich möchte gerne das VERZEICHNIS haben.<br />
die funktion returnt mir aber das verzeichnis + &quot;\mydll.dll&quot;<br />
krieg ich das hinten irgendwie weg, dass ich das verzeichnis so habe.<br />
und die '\' in '\' wandeln, damit ich mit dem verzeichnis auch arbeiten kann,</p>
<p>vielen dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/247081/verzeichnis-der-dll-bekommen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 19:26:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/247081.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Aug 2009 18:36:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Verzeichnis der DLL bekommen on Wed, 05 Aug 2009 18:36:56 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine DLL, von der ich das verzeichnis mithilfe der DllMain funktion bekommen würde.</p>
<p>das habe ich bereits:</p>
<pre><code class="language-cpp">BOOL APIENTRY DllMain( HMODULE hModule, DWORD reason, LPVOID lpReserved )
{
	switch(reason)
	{
		case DLL_PROCESS_ATTACH: 
			DisableThreadLibraryCalls( hModule ); 
			char dlldir[] = &quot;&quot;;
                        GetModuleFileNameA(hModule, dlldir, sizeof(dlldir));
                        MessageBox(NULL, dlldir, &quot;LIZ!&quot;, MB_OK);
			break;
	}

	return TRUE;
}
</code></pre>
<p>funktioniert prima:</p>
<p>DOCH: ich möchte gerne das VERZEICHNIS haben.<br />
die funktion returnt mir aber das verzeichnis + &quot;\mydll.dll&quot;<br />
krieg ich das hinten irgendwie weg, dass ich das verzeichnis so habe.<br />
und die '\' in '\' wandeln, damit ich mit dem verzeichnis auch arbeiten kann,</p>
<p>vielen dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1755939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1755939</guid><dc:creator><![CDATA[ZeroM]]></dc:creator><pubDate>Wed, 05 Aug 2009 18:36:56 GMT</pubDate></item><item><title><![CDATA[Reply to Verzeichnis der DLL bekommen on Wed, 05 Aug 2009 18:42:15 GMT]]></title><description><![CDATA[<p>PathRemoveFileSpec</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1755943</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1755943</guid><dc:creator><![CDATA[shlwapi]]></dc:creator><pubDate>Wed, 05 Aug 2009 18:42:15 GMT</pubDate></item></channel></rss>