<?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[Unresolved external ... referenced from ....]]></title><description><![CDATA[<p>Hallo ,<br />
folgendes Problem: Ich versuche schon 'ne ganze Weile die winscard.dll in mein Programm zu integrieren (Treiber für die PC/SC-Schnittstelle, die das Ansprechen von Kartenleser/Chipkarten erlaubt).<br />
Als Fehlermeldung erhalte ich &quot;Unresolved external 'SCardEstablishContext' referenced from C:\...\UNIT1.OBJ&quot;. Die Lib-Datei hatte ich zuvor in ein Borland-Format konvertieren müssen (mittels Borlandtool 'implib') und ist zusammen mir der Headerdatei 'winscard.h' eingebunden. Woran kann es liegen?<br />
Jemand 'ne Idee?<br />
Gruß<br />
Landi</p>
<p>Hier ein Programmauszug:</p>
<p>#include &lt;vcl.h&gt;<br />
#pragma hdrstop</p>
<p>#include &quot;Unit1.h&quot;</p>
<p>#include &quot;winscard.h&quot;</p>
<p>//---------------------------------------------------------------------------<br />
#pragma package(smart_init)<br />
#pragma resource &quot;*.dfm&quot;<br />
TForm1 *Form1;</p>
<p>void __fastcall TForm1::Button1Click(TObject <em>Sender)<br />
{<br />
SCARDCONTEXT Context; /</em> Ressource-Manager-Kontext <em>/<br />
SCARDHANDLE CardHandle; /</em> Handle auf die Chipkarte <em>/<br />
DWORD Protocol; /</em> Übertragungsprotokoll <em>/<br />
LONG result; /</em> Variable für Return-Codes <em>/<br />
DWORD dwReaders; /</em> Anzahl verfügbarer Terminals <em>/<br />
LPSTR mszReaders; /</em> Liste verfügbarer Terminals <em>/<br />
int i,p,iList[20],reader; /</em> Hilfsvariablen <em>/<br />
SCARD_READERSTATE_A readerState[1]; /</em> Status des Terminals <em>/<br />
DWORD responseLength; /</em> Antwortlänge <em>/<br />
unsigned char response[100]; /</em> Puffer für Antwort <em>/<br />
unsigned short int trailer; /</em> Antwort Trailer */</p>
<p>/* Verbindung zum PC/SC Ressource Manager aufbauen */<br />
result = SCardEstablishContext( SCARD_SCOPE_USER, NULL, NULL, &amp;Context);</p>
<p>}<br />
//---------------------------------------------------------------------------</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/115119/unresolved-external-referenced-from</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 07:46:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/115119.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Jul 2005 15:32:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unresolved external ... referenced from .... on Mon, 11 Jul 2005 15:32:33 GMT]]></title><description><![CDATA[<p>Hallo ,<br />
folgendes Problem: Ich versuche schon 'ne ganze Weile die winscard.dll in mein Programm zu integrieren (Treiber für die PC/SC-Schnittstelle, die das Ansprechen von Kartenleser/Chipkarten erlaubt).<br />
Als Fehlermeldung erhalte ich &quot;Unresolved external 'SCardEstablishContext' referenced from C:\...\UNIT1.OBJ&quot;. Die Lib-Datei hatte ich zuvor in ein Borland-Format konvertieren müssen (mittels Borlandtool 'implib') und ist zusammen mir der Headerdatei 'winscard.h' eingebunden. Woran kann es liegen?<br />
Jemand 'ne Idee?<br />
Gruß<br />
Landi</p>
<p>Hier ein Programmauszug:</p>
<p>#include &lt;vcl.h&gt;<br />
#pragma hdrstop</p>
<p>#include &quot;Unit1.h&quot;</p>
<p>#include &quot;winscard.h&quot;</p>
<p>//---------------------------------------------------------------------------<br />
#pragma package(smart_init)<br />
#pragma resource &quot;*.dfm&quot;<br />
TForm1 *Form1;</p>
<p>void __fastcall TForm1::Button1Click(TObject <em>Sender)<br />
{<br />
SCARDCONTEXT Context; /</em> Ressource-Manager-Kontext <em>/<br />
SCARDHANDLE CardHandle; /</em> Handle auf die Chipkarte <em>/<br />
DWORD Protocol; /</em> Übertragungsprotokoll <em>/<br />
LONG result; /</em> Variable für Return-Codes <em>/<br />
DWORD dwReaders; /</em> Anzahl verfügbarer Terminals <em>/<br />
LPSTR mszReaders; /</em> Liste verfügbarer Terminals <em>/<br />
int i,p,iList[20],reader; /</em> Hilfsvariablen <em>/<br />
SCARD_READERSTATE_A readerState[1]; /</em> Status des Terminals <em>/<br />
DWORD responseLength; /</em> Antwortlänge <em>/<br />
unsigned char response[100]; /</em> Puffer für Antwort <em>/<br />
unsigned short int trailer; /</em> Antwort Trailer */</p>
<p>/* Verbindung zum PC/SC Ressource Manager aufbauen */<br />
result = SCardEstablishContext( SCARD_SCOPE_USER, NULL, NULL, &amp;Context);</p>
<p>}<br />
//---------------------------------------------------------------------------</p>
]]></description><link>https://www.c-plusplus.net/forum/post/828539</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/828539</guid><dc:creator><![CDATA[Landi]]></dc:creator><pubDate>Mon, 11 Jul 2005 15:32:33 GMT</pubDate></item><item><title><![CDATA[Reply to Unresolved external ... referenced from .... on Tue, 12 Jul 2005 06:08:02 GMT]]></title><description><![CDATA[<p>Den Beitrag aus den FAQ hattest Du gesehen? (<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39193" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=39193</a>)</p>
<p>Ansonsten lösch die angemekerte obj-Datei mal. Ab und zu kommt der BCB da ein bißchen durcheinander.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/828924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/828924</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 12 Jul 2005 06:08:02 GMT</pubDate></item><item><title><![CDATA[Reply to Unresolved external ... referenced from .... on Tue, 12 Jul 2005 07:42:30 GMT]]></title><description><![CDATA[<p>Danke mal für die Antwort. Habe den Fehler zwischenzeitlich gefunden. Bei der Konvertierung der Original-Lib ins Borland-Format habe ich den Parameter für '_'-Alias (-&gt; cdecl-Funktion zur Kompatibilität mit Microsoft-Biblotheken) eingefügt ( zuvor: 'implib -a winscard.lib winscard.dll' , jetzt: 'implib Winscard.lib winscard.dll'). Mit Weglassen kein Linker-Meckern mehr.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
<p>Gruß<br />
Landi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/828991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/828991</guid><dc:creator><![CDATA[Landi]]></dc:creator><pubDate>Tue, 12 Jul 2005 07:42:30 GMT</pubDate></item></channel></rss>