<?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[[Linker Fehler] Delayed load module RSA.DLL was not found]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich habe meine DLL über Projekt-&gt;Optionen-&gt;Erweiterter Linker eingebunden, bekomme aber beim compilieren immer diese Fehlermeldung...</p>
<p>DLL und LIB sind im Verzeichnis?</p>
<p>1.Was kann ich tun um den Fehler zu beseitigen?<br />
2.Ist die LIB nötig?</p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/185307/linker-fehler-delayed-load-module-rsa-dll-was-not-found</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 11:09:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/185307.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Jun 2007 21:46:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sat, 23 Jun 2007 21:46:49 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich habe meine DLL über Projekt-&gt;Optionen-&gt;Erweiterter Linker eingebunden, bekomme aber beim compilieren immer diese Fehlermeldung...</p>
<p>DLL und LIB sind im Verzeichnis?</p>
<p>1.Was kann ich tun um den Fehler zu beseitigen?<br />
2.Ist die LIB nötig?</p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1312473</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312473</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Sat, 23 Jun 2007 21:46:49 GMT</pubDate></item><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sun, 24 Jun 2007 07:09:26 GMT]]></title><description><![CDATA[<p>Moin,</p>
<p>kann es sein, dass die dll im Projektverzeichnis liegt und der Compiler nach dem Start der Anwendung die dll in Debug oder Release vermutet?. Ich glaube unter Options/Debug (sitze gerade nicht an meinem Arbeitsrechner...) kannst Du das Arbeitsverzeichnis einstellen, wo er auch nach der dll sucht.</p>
<p>Wenn er die Lib nicht findet, wie bindest Du die ein? Ich gehe immer den Weg, klicke in der Projektanzeige auf mein aktuelles Projekt, Hinzufügen und wähle dann die Lib-Datei aus. Dann sollte auch der Pfad stimmen.</p>
<p>Ich hoffe, ich konnte weiterhelfen.</p>
<p>VG Pixfreak</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1312559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312559</guid><dc:creator><![CDATA[pixfreak]]></dc:creator><pubDate>Sun, 24 Jun 2007 07:09:26 GMT</pubDate></item><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sun, 24 Jun 2007 10:48:18 GMT]]></title><description><![CDATA[<blockquote>
<p>kann es sein, dass die dll im Projektverzeichnis liegt und der Compiler nach dem Start der Anwendung die dll in Debug oder Release vermutet?. Ich glaube unter Options/Debug (sitze gerade nicht an meinem Arbeitsrechner...) kannst Du das Arbeitsverzeichnis einstellen, wo er auch nach der dll sucht.</p>
</blockquote>
<p>Debug gibts nicht...</p>
<blockquote>
<p>Wenn er die Lib nicht findet, wie bindest Du die ein?</p>
</blockquote>
<p>Erst hab ich nur die DLL über Optionen angegeben, dann mit Hinzufügen die Lib, aber erst als ich die DLL aus den Optionen rausgenommen habe, ging es.<br />
Allerdings wenn ich nur die lib einbinde, wozu bracuhe ich noch die DLL?<br />
Was steht in der LIB eigentlich, wozu ist die da?</p>
<p>Sry für die Fragen, aber dies ist das erste mal das ich DLLs progge <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>[Edit]</p>
<pre><code class="language-cpp">...__declspec(dllexport) long  _stdcall rsa_genkey(long,long,long);
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
  long h = rsa_genkey(22,44,66);
...
</code></pre>
<p>dann bekomm ich:<br />
[Linker Fehler] Unresolved external '__stdcall rsa_genkey(long, long, long)' referenced from C:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\CRAGANIZER\CRAGANIZER.OBJ</p>
<p>Bei ohne DLL angeben nur Lib...<br />
[/Edit]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1312647</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312647</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Sun, 24 Jun 2007 10:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sun, 24 Jun 2007 11:12:20 GMT]]></title><description><![CDATA[<p>Hier mal die DLL:</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;windows.h&gt;
#include &lt;math.h&gt;
#include &lt;assert.h&gt;
//---------------------------------------------------------------------------
//    RSA-DLL
//---------------------------------------------------------------------------

#pragma argsused
long qe2(long,long,long);
long inverse(long,long);
void extended_euclid(long,long,long*,long*,long*);
extern &quot;C&quot; __declspec(dllexport) long rsa_genkey(long,long,long);
extern &quot;C&quot; __declspec(dllexport) long rsa_encrypt(long,long,long);
extern &quot;C&quot; __declspec(dllexport) long rsa_decrypt(long,long,long);
extern &quot;C&quot; __declspec(dllexport) char* getVersion();

int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
        return 1;
}
//---------------------------------------------------------------------------

char* getVersion()
{
  return &quot;1.0&quot;;
}
//---------------------------------------------------------------------------

long qe2(long x, long y, long n)   
{
    long s, t, u;

    s = 1, t = x, u = y;

    while (u) {
        if (u &amp; 1) s = (s * t) % n;
        u &gt;&gt;= 1;
        t = (t * t) % n;
    }

    return s;
}
//---------------------------------------------------------------------------

void extended_euclid(long a, long b, long *x, long *y, long *d)  
{
    long q, r, x1 = 0, x2 = 1, y1 = 1, y2 = 0;

    if (b == 0) {
        *d = a;
        *x = 1;
        *y = 0; 
        return;
    }

    while (b &gt; 0) { 
        q = a / b;
        r = a - q * b; 
        *x = x2 - q * x1;
        *y = y2 - q * y1; 
        a = b;
        b = r;
        x2 = x1;
        x1  = *x;
        y2 = y1;
        y1 = *y; 
    } 

    *d = a; 
    *x = x2; 
    *y = y2; 
}
//---------------------------------------------------------------------------

long inverse(long a, long n)
{
    long d, x, y; 

    extended_euclid(a, n, &amp;x, &amp;y, &amp;d); 
    if (d == 1) return x;

    return 0;
} 
//---------------------------------------------------------------------------

long rsa_genkey(long p, long q, long e)
{ 
    return inverse(e, (p-1)*(q-1));
}
//---------------------------------------------------------------------------

long rsa_encrypt(long m, long e, long n)
{ 
    assert(m &lt; n);        
    return qe2(m, e, n); 
}
//---------------------------------------------------------------------------

long rsa_decrypt(long c, long d, long n)
{
    assert(c &lt; n);        
    return qe2(c, d, n);
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1312666</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312666</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Sun, 24 Jun 2007 11:12:20 GMT</pubDate></item><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sun, 24 Jun 2007 11:38:10 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ok, ich habe den Eintrag Arbeitsverzeichnis unter Projekt/Optionen Unterpunkt Debugger. Im Builder 2007 ist der Eintrag in der Mitte, im Turbo C++ Explorer ganz unten in der Liste.</p>
<p>Vielleicht kopierst Du Deine DLL einfach in das Debug oder Release-Build Verzeichnis, jenachdem welche Buildkonfiguration Du gerade hast.</p>
<p>Einbinden musst Du nur die LIB Datei, nicht die DLL, die sollte er ja selber laden. Die Lib ist quasi die Beschreibung für den Compiler, wie und welche Funktionen er aus der DLL nutzen soll.</p>
<p>Viele Grüße</p>
<p>Pixfreak</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1312676</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312676</guid><dc:creator><![CDATA[pixfreak]]></dc:creator><pubDate>Sun, 24 Jun 2007 11:38:10 GMT</pubDate></item><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sun, 24 Jun 2007 11:43:57 GMT]]></title><description><![CDATA[<p>Also ich benutze den C++ Builder 6, da gibts kein releasebuild verzeichnis,<br />
und die DLL und die Lib sind im Projektverzeichnis</p>
<p>Also starten tut er ohne:</p>
<pre><code class="language-cpp">__declspec(dllexport) long  _stdcall rsa_genkey(long,long,long);
</code></pre>
<p>schreib ich es allerdings in meine main cpp so bekomm ich vom linker</p>
<p>[Linker Fehler] Unresolved external '__stdcall rsa_genkey(long, long, long)' referenced from C:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\CRAGANIZER\CRAGANIZER.OBJ</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1312680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312680</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Sun, 24 Jun 2007 11:43:57 GMT</pubDate></item><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sun, 24 Jun 2007 13:02:26 GMT]]></title><description><![CDATA[<p>So, ich habe nun herausgefunden, das meine DLL das verzögerte Laden anscheinend nicht unterstützt.</p>
<p>Jetzt mache ich es Dynamisch.<br />
Laden der DLL geht.</p>
<p>Jedoch kann ich keine Funktion aus der DLL laden...</p>
<p>Hier Quellcode:</p>
<pre><code class="language-cpp">typedef long (_stdcall *rsa)(long,long,long);
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
  HMODULE   RSA;
  rsa getVersion;

  RSA = LoadLibrary(&quot;RSA.dll&quot;);
  if(RSA == NULL)
  {
    Application-&gt;MessageBoxA(&quot;Fehler beim Laden von 'RSA.dll'!&quot;,&quot;Fehler!&quot;,MB_ICONERROR);
  }
  getVersion = (rsa)GetProcAddress(RSA,&quot;getVersion&quot;);
  if(getVersion == NULL)
  {
    Application-&gt;MessageBoxA(&quot;Fehler beim Laden der Funktionen!&quot;,&quot;Fehler!&quot;,MB_ICONERROR);
  }
...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1312710</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312710</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Sun, 24 Jun 2007 13:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sun, 24 Jun 2007 15:36:29 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>wie erstellst Du denn Dein Projekt? Als Debug Version? Was hast Du denn mit der DLL vor? Wenn das die paar Funktionen sind, würde ich die einfach so in den Quellcode übernehmen.</p>
<p>VG Pixfreak</p>
<p>Äh, habe eben noch gelesen, dass Deine dll im Projektverzeichnis liegt. Die LIB muss in das Projekt eingefügt werden und dann kopiere mal die Dll nach Debug...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1312805</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312805</guid><dc:creator><![CDATA[pixfreak]]></dc:creator><pubDate>Sun, 24 Jun 2007 15:36:29 GMT</pubDate></item><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sun, 24 Jun 2007 16:36:38 GMT]]></title><description><![CDATA[<blockquote>
<p>wie erstellst Du denn Dein Projekt? Als Debug Version?</p>
</blockquote>
<p>Ich nehme mal an das mein Prog in der Debug Version ist, die DLL hab ich nun als Final Version eingestellet. Hat aber nichts gebracht...</p>
<blockquote>
<p>Wenn das die paar Funktionen sind, würde ich die einfach so in den Quellcode übernehmen.</p>
</blockquote>
<p>Klar, aber ich hätt sie gern in ner DLL <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<blockquote>
<p>Die LIB muss in das Projekt eingefügt werden und dann kopiere mal die Dll nach Debug</p>
</blockquote>
<p>Wo soll denn so ein Debug ordner sein? Also in meinem Projektverzeichnis nicht...<br />
Die Lib ist schon lange drin.</p>
<p>Hab jetzt mal ne *.def gemacht um Namen für die Funktionen zu haben, zum exportieren.<br />
Nun bekomm ich ne Speicherverletzung...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1312872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312872</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Sun, 24 Jun 2007 16:36:38 GMT</pubDate></item><item><title><![CDATA[Reply to [Linker Fehler] Delayed load module RSA.DLL was not found on Sun, 24 Jun 2007 17:05:47 GMT]]></title><description><![CDATA[<p>So, hab das Prob nun mit dem Builder Tut gelöst, Danke nochmal! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1312895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1312895</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Sun, 24 Jun 2007 17:05:47 GMT</pubDate></item></channel></rss>