<?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[Dll in Visual C++ 7 einbinden]]></title><description><![CDATA[<p>Hallo,<br />
ich habe bereits die Suchfunktion genutzt, das hat mir aber nicht geholfen.<br />
Ich möchte gerne eine dll in mein Projekt einbínden.<br />
Unter dem Borland C++ Builder musste ich dazu eine Library aus der dll erstellen (dazu gibts ein Tool direkt vom Borland C++ Builder).<br />
Diese Library konnte ich dann in mein Projekt einbinden. Zusätzlich musste ich noch die Funktionsdeklarationen in meinen Header einbinden. Diese waren vorgegeben:</p>
<pre><code class="language-cpp">#ifdef __cplusplus
extern &quot;C&quot; {
#endif

#define IgorUSBDLL    &quot;IgorUSB.dll&quot;;
  //return values from IgorUSBDLL functions:
#define NO_ERROR    0;
#define DEVICE_NOT_PRESENT    1;
#define NO_DATA_AVAILABLE    2;
#define INVALID_BAUDRATE    3;
#define OVERRUN_ERROR    4;

int __stdcall DoGetInfraCode(uchar * TimeCodeDiagram, int DummyInt, int * DiagramLength);
int __stdcall DoSetDataPortDirection(uchar DirectionByte);
int __stdcall DoGetDataPortDirection(uchar * DataDirectionByte);
int __stdcall DoSetOutDataPort(uchar DataOutByte);
int __stdcall DoGetOutDataPort(uchar * DataOutByte);
int __stdcall DoGetInDataPort(uchar * DataInByte);
int __stdcall DoEEPROMRead(uchar Address, uchar * DataInByte);
int __stdcall DoEEPROMWrite(uchar Address, uchar DataOutByte);
int __stdcall DoRS232Send(uchar DataOutByte);
int __stdcall DoRS232Read(uchar * DataInByte);
int __stdcall DoSetRS232Baud(int BaudRate);
int __stdcall DoGetRS232Baud(int * BaudRate);

#ifdef __cplusplus
    }
#endif
</code></pre>
<p>Wie kann ich die dll nun in ein Visual C++ 7 Projekt einbinden?</p>
<p>Schönen Dank</p>
<p>Raptor</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/83989/dll-in-visual-c-7-einbinden</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 00:43:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/83989.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Aug 2004 06:53:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dll in Visual C++ 7 einbinden on Thu, 26 Aug 2004 06:53:13 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich habe bereits die Suchfunktion genutzt, das hat mir aber nicht geholfen.<br />
Ich möchte gerne eine dll in mein Projekt einbínden.<br />
Unter dem Borland C++ Builder musste ich dazu eine Library aus der dll erstellen (dazu gibts ein Tool direkt vom Borland C++ Builder).<br />
Diese Library konnte ich dann in mein Projekt einbinden. Zusätzlich musste ich noch die Funktionsdeklarationen in meinen Header einbinden. Diese waren vorgegeben:</p>
<pre><code class="language-cpp">#ifdef __cplusplus
extern &quot;C&quot; {
#endif

#define IgorUSBDLL    &quot;IgorUSB.dll&quot;;
  //return values from IgorUSBDLL functions:
#define NO_ERROR    0;
#define DEVICE_NOT_PRESENT    1;
#define NO_DATA_AVAILABLE    2;
#define INVALID_BAUDRATE    3;
#define OVERRUN_ERROR    4;

int __stdcall DoGetInfraCode(uchar * TimeCodeDiagram, int DummyInt, int * DiagramLength);
int __stdcall DoSetDataPortDirection(uchar DirectionByte);
int __stdcall DoGetDataPortDirection(uchar * DataDirectionByte);
int __stdcall DoSetOutDataPort(uchar DataOutByte);
int __stdcall DoGetOutDataPort(uchar * DataOutByte);
int __stdcall DoGetInDataPort(uchar * DataInByte);
int __stdcall DoEEPROMRead(uchar Address, uchar * DataInByte);
int __stdcall DoEEPROMWrite(uchar Address, uchar DataOutByte);
int __stdcall DoRS232Send(uchar DataOutByte);
int __stdcall DoRS232Read(uchar * DataInByte);
int __stdcall DoSetRS232Baud(int BaudRate);
int __stdcall DoGetRS232Baud(int * BaudRate);

#ifdef __cplusplus
    }
#endif
</code></pre>
<p>Wie kann ich die dll nun in ein Visual C++ 7 Projekt einbinden?</p>
<p>Schönen Dank</p>
<p>Raptor</p>
]]></description><link>https://www.c-plusplus.net/forum/post/591519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/591519</guid><dc:creator><![CDATA[Raptor2000]]></dc:creator><pubDate>Thu, 26 Aug 2004 06:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to Dll in Visual C++ 7 einbinden on Thu, 26 Aug 2004 09:44:17 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=1819" rel="nofollow">kingruedi</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=8" rel="nofollow">Rund um die Programmierung</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=1" rel="nofollow">MFC mit dem Visual C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/591649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/591649</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 26 Aug 2004 09:44:17 GMT</pubDate></item></channel></rss>