<?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[öffnen dll]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Kann mir einer sagen warum ich den Folgenden fehler bekomme wenn ich mein Programm aus führe um eine dll auszulesen.</p>
<p>Fehler:<br />
&quot;Die Anweisung in &quot;0x00000000&quot; verweist au Speier in &quot;0x00000000&quot;. Der Vorgang &quot;read&quot; konnte nicht auf dem Speicher durchgeführt werden.&quot;</p>
<p>Der fehler wird aber erst ausgegeben sobald ich beginne die dll auszulesen.</p>
<p>Hier noch mein code mit dem ich die DLL auslesen will:</p>
<pre><code class="language-cpp">ReadPosition readposition;
	float ptr_pderrs1[5];
	float ptr_cderrs1[5];
	int ptr_ncolours;

	dll_handle = LoadLibrary( &quot;dlltest.dll&quot; );

  readposition = (ReadPosition)GetProcAddress(dll_handle,
																						&quot;ReadPosition&quot;); 
  m_readposition = 1;
	m_ptr_ncolours=1;
	ptr_ncolours = m_ptr_ncolours;
	m_ptr_pderrs=m_ptr_cderrs=1;
	ptr_pderrs1[1]=  ptr_cderrs1[1] = m_ptr_cderrs;
	m_readposition = readposition(&amp;ptr_ncolours,ptr_pderrs1,ptr_cderrs1);

	m_ptr_ncolours=ptr_ncolours;
	m_ptr_pderrs=ptr_pderrs1[z];
	m_ptr_cderrs=ptr_cderrs1[z];
	if(z==4)
	{
		z=0;
	}
	else
	{
		z++;
	}
	UpdateData(FALSE);
</code></pre>
<p>z ist eine Glodale variable und nicht weiter wichtig</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/60622/öffnen-dll</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 13:56:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/60622.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Jan 2004 10:49:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 10:53:10 GMT]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Kann mir einer sagen warum ich den Folgenden fehler bekomme wenn ich mein Programm aus führe um eine dll auszulesen.</p>
<p>Fehler:<br />
&quot;Die Anweisung in &quot;0x00000000&quot; verweist au Speier in &quot;0x00000000&quot;. Der Vorgang &quot;read&quot; konnte nicht auf dem Speicher durchgeführt werden.&quot;</p>
<p>Der fehler wird aber erst ausgegeben sobald ich beginne die dll auszulesen.</p>
<p>Hier noch mein code mit dem ich die DLL auslesen will:</p>
<pre><code class="language-cpp">ReadPosition readposition;
	float ptr_pderrs1[5];
	float ptr_cderrs1[5];
	int ptr_ncolours;

	dll_handle = LoadLibrary( &quot;dlltest.dll&quot; );

  readposition = (ReadPosition)GetProcAddress(dll_handle,
																						&quot;ReadPosition&quot;); 
  m_readposition = 1;
	m_ptr_ncolours=1;
	ptr_ncolours = m_ptr_ncolours;
	m_ptr_pderrs=m_ptr_cderrs=1;
	ptr_pderrs1[1]=  ptr_cderrs1[1] = m_ptr_cderrs;
	m_readposition = readposition(&amp;ptr_ncolours,ptr_pderrs1,ptr_cderrs1);

	m_ptr_ncolours=ptr_ncolours;
	m_ptr_pderrs=ptr_pderrs1[z];
	m_ptr_cderrs=ptr_cderrs1[z];
	if(z==4)
	{
		z=0;
	}
	else
	{
		z++;
	}
	UpdateData(FALSE);
</code></pre>
<p>z ist eine Glodale variable und nicht weiter wichtig</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430649</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 07 Jan 2004 10:53:10 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 11:22:00 GMT]]></title><description><![CDATA[<p>readposition wird wohl NULL haben. Prüfe den Rückgabewert von GetProcAddress</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430667</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Wed, 07 Jan 2004 11:22:00 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 11:41:37 GMT]]></title><description><![CDATA[<p>Du meinst ich soll die dll überprüfen dass der Fehler in der DLL erzeugt wird?</p>
<p>Hier mal der code aus der dll:</p>
<pre><code class="language-cpp">extern &quot;C&quot; _declspec(dllexport) int _stdcall ReadPosition( int *ptr_ncolours, float *ptr_pderrs, float *ptr_cderrs)
{
	int i=0;
	float test[5];
	float test2[5];

	test[0]=gelbpd;
	test[1]=schwarzpd;
	test[2]=rotpd;

	test2[0]=gelbcd;
	test2[1]=schwarzcd;
	test2[2]=rotcd;

	*ptr_ncolours=3;
	for(i=0;i&lt;=4;i++)
	{
	*ptr_pderrs=test[i];
	ptr_pderrs++;

	*ptr_cderrs=test2[i];
	ptr_cderrs++;
	}
	return 2;
}
</code></pre>
<pre><code class="language-cpp">; dlltest.def : Deklariert die Modul-Parameter für die DLL.

LIBRARY      &quot;dlltest&quot;
DESCRIPTION  'dlltest Windows Dynamic Link Library'

EXPORTS
    ; Explizite Exporte können hier eingefügt werden
	ReadPosition
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/430685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430685</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 07 Jan 2004 11:41:37 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 11:57:27 GMT]]></title><description><![CDATA[<p>Na die Fehlerbeschreibung Deinerseits lässt nur Raten zu.</p>
<p>Entweder ist das dll_handle null oder readposition .</p>
<p>Und das wirst Du ja noch mit einem if abprüfen können ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430702</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430702</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Wed, 07 Jan 2004 11:57:27 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 12:13:36 GMT]]></title><description><![CDATA[<p>der dll_handle ist null kann dir das weiterhelfen? Ich muss die werte die in den arrays test und test2 stehen in die exe bekommen. Was habe ich falsch gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430712</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430712</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 07 Jan 2004 12:13:36 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 12:14:36 GMT]]></title><description><![CDATA[<p>der dll_handle ist null kann dir das weiterhelfen? Ich muss die werte die in den arrays test und test2 stehen in die exe bekommen. Was habe ich falsch gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430715</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430715</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 07 Jan 2004 12:14:36 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 12:16:24 GMT]]></title><description><![CDATA[<p>LoadLibrary kann Deine dll nicht finden.</p>
<p>Du musst dafür sorgen das diese im Pfad liegt.</p>
<p>z.B. %windir%\system32</p>
<p>oder da wo die .exe ausgeführt wird</p>
<p>z.B.</p>
<p>..\DeinProgramm\Debug\</p>
<p>Geh mal auf LoadLibrary und drück F1. Da findeste Details.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430717</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Wed, 07 Jan 2004 12:16:24 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 12:17:14 GMT]]></title><description><![CDATA[<p>LoadLibrary kann Deine dll nicht finden.</p>
<p>Du musst dafür sorgen das diese im Pfad liegt.</p>
<p>z.B. %windir%\system32</p>
<p>oder da wo die .exe ausgeführt wird</p>
<p>z.B.</p>
<p>..\DeinProgramm\Debug\</p>
<p>Geh mal auf LoadLibrary und drück F1. Da findeste Details.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430721</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430721</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Wed, 07 Jan 2004 12:17:14 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 12:41:02 GMT]]></title><description><![CDATA[<p>Ich habe die dll in den Debug ordner Projekts gelegt und in die Ordner system und system32 und bei mir ist immernoch der dll_handel ==0</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430734</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430734</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 07 Jan 2004 12:41:02 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 13:22:28 GMT]]></title><description><![CDATA[<p>Kann mir einer sagen was es noch sein kann ich bin ratlos.</p>
<p>Der Compiler und auch der linker der dll sowie der exe geben keine Fehler aus nur eben beim ausführen bekomme ich immernoch den oben genanten fehler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430767</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430767</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Wed, 07 Jan 2004 13:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Wed, 07 Jan 2004 15:28:12 GMT]]></title><description><![CDATA[<p>HMODULE hModule = LoadLibrary(&quot;dlltest.dll&quot;);</p>
<p>Mach mal das und schau ob er immer noch null ist</p>
]]></description><link>https://www.c-plusplus.net/forum/post/430904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/430904</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Wed, 07 Jan 2004 15:28:12 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 07:48:45 GMT]]></title><description><![CDATA[<p>Tut mir Leid Tom aber es funktioniert auch nicht.</p>
<p>Ich hatte vor einigen Monaten mal ne test-dll geschrieben mit 2 Funktionen und hatte meinen jetzigen code nur ersetz und die eine Funktion gelöscht zumindest in der dll und in der exe habe ich auch nur die Teiele gelöscht die ich klar zur anderen funktion zuteilen konnte. ansonsten habe ich es auch wie ganz oben im code die dll geöffnen oder zumindest im Programm benutzt um daten zu bekommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431310</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431310</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Thu, 08 Jan 2004 07:48:45 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 08:42:12 GMT]]></title><description><![CDATA[<p>Ich vermut jetzt eher der Fehler liegt in der DLL, wenn ich die alte dll die ja 2 Funktionen hat mit der jetzigen exe öffnen kann ich die eine Funktion immernoch auslesen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431348</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431348</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Thu, 08 Jan 2004 08:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 09:38:37 GMT]]></title><description><![CDATA[<p>Du hast meine Frage nicht beantwortet. &quot;Funktioniert nicht&quot; ist keine Antwort.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431385</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431385</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Thu, 08 Jan 2004 09:38:37 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 10:17:59 GMT]]></title><description><![CDATA[<p>Der Handel ist immernoch null. Ich habe auch nochmal die .def Datei der dll kontrolliert und meine da ist kein fehler drin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431391</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Thu, 08 Jan 2004 10:17:59 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 11:12:11 GMT]]></title><description><![CDATA[<p>Wenn der HANDLE NULL ist findet er die DLL nicht oder die DLL ist falsch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431459</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Thu, 08 Jan 2004 11:12:11 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 11:16:43 GMT]]></title><description><![CDATA[<p>Ich habe als Betriebssystem Win 2k und die dll liegt in C:/Winnt/system von da müste er doch die dll finden oder? Hier noch der Code der übergabefunktion aus der dll:</p>
<pre><code class="language-cpp">extern &quot;C&quot; _declspec(dllexport) int _stdcall ReadPosition( int *ptr_ncolours, float *ptr_pderrs, float *ptr_cderrs)
{
	int i=0;
	float test[5];
	float test2[5];

	test[0]=gelbpd;
	test[1]=schwarzpd;
	test[2]=rotpd;

	test2[0]=gelbcd;
	test2[1]=schwarzcd;
	test2[2]=rotcd;

	*ptr_ncolours=3;
	for(i=0;i&lt;=4;i++)
	{
	*ptr_pderrs=test[i];
	ptr_pderrs++;

	*ptr_cderrs=test2[i];
	ptr_cderrs++;
	}
	return 2;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/431465</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431465</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Thu, 08 Jan 2004 11:16:43 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 12:16:17 GMT]]></title><description><![CDATA[<p>in system32 liegen die dll`s.<br />
Oder du hast sie im Localordner</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431509</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Thu, 08 Jan 2004 12:16:17 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 12:22:50 GMT]]></title><description><![CDATA[<p>Was die DLL beinhaltet ist an dem Punkt völlig schnuppe. Erst wenn der dll Handle != NULL ist spielt das ne rolle. Und vom immer wieder das gleiche schreiben wirds nich Informativer ;o)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431513</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431513</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Thu, 08 Jan 2004 12:22:50 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 12:31:45 GMT]]></title><description><![CDATA[<p><a href="http://www.sensorme.de/dateien/Plugintest.zip" rel="nofollow">http://www.sensorme.de/dateien/Plugintest.zip</a></p>
<p>Lade dir das mal runter und suche dir die DLÖL aus. Das Programm gibt dann aus ob sie geladen werden konnte oder nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431522</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431522</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Thu, 08 Jan 2004 12:31:45 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 14:11:42 GMT]]></title><description><![CDATA[<p>der Plugintest sagt mir &quot;Fehler beim laden der DLL&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431615</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Thu, 08 Jan 2004 14:11:42 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 19:18:54 GMT]]></title><description><![CDATA[<p>Hast du die DLL auch ausgewählt. Wenn ja dann liegt ein Problem bei der DLL vor. Wenn du nur den Namen eingegeben hast kann immer noch sein das sie nicht gefunden wir.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/431876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/431876</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Thu, 08 Jan 2004 19:18:54 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 23:00:14 GMT]]></title><description><![CDATA[<p>wie meinst du das mit angewählt. Im ersten beitrag habe ich meinen kompletten aufruf der dll doch geschrieben. Muss etwa den kompletten pfad der dll angeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/432021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/432021</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Thu, 08 Jan 2004 23:00:14 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Thu, 08 Jan 2004 23:39:13 GMT]]></title><description><![CDATA[<p>versuch mal die dll auszuwählen gibt einenbutton dafür</p>
]]></description><link>https://www.c-plusplus.net/forum/post/432036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/432036</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Thu, 08 Jan 2004 23:39:13 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Fri, 09 Jan 2004 05:14:44 GMT]]></title><description><![CDATA[<p>Gibt es für den Button auch noch einen Funktionsnamen? Aber selbst bei deinem Testprogramm kann ich die DLL nicht öffnen also denke ich schon das ich die DLL richtig anwähle</p>
]]></description><link>https://www.c-plusplus.net/forum/post/432072</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/432072</guid><dc:creator><![CDATA[blind]]></dc:creator><pubDate>Fri, 09 Jan 2004 05:14:44 GMT</pubDate></item><item><title><![CDATA[Reply to öffnen dll on Fri, 09 Jan 2004 07:05:56 GMT]]></title><description><![CDATA[<p>Hast mich falsch verstanden. Mein Programm hat neben dem eingabefeld einen Button. Hier öffnet sich der Browsdialog. Dort suchst du die DLL und wählst sie aus.<br />
Wenn sie dann nicht geladen werden kann hast du ein Problem mit der DLL.</p>
<p>Sollte sie geladen werden dann wählst du die DLL nicht aus sondern gibst nur den Namen im EIngabefeld ein. Dann wird sie in den Pfaden gesucht. SOllte sie dann nicht geladen werden, wird sie einfach nur nicht gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/432088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/432088</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Fri, 09 Jan 2004 07:05:56 GMT</pubDate></item></channel></rss>