<?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[LPT Port in &amp;quot;C&amp;quot; mit Hilfe von DlPortIO ansprechen]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich hab folgendes Problem. Ich arbeite an einem Projekt in &quot;C&quot; (Visaul C++ 6.0 und Win XP).<br />
In diesem Projekt muss ich Daten am LPT Port ausgeben. Ich verwende dafür DlPortIO, bring das Ganze aber nicht zum laufen. In einem C++ Projekt läufts einwandfrei, allerdings in &quot;C&quot; will das ganze nicht. In meinem Projekt hab ich die dlportio.h-Datei includiert und die Lib-Datei dem Projekt hinzugefügt.</p>
<p>Der Compiler spuckt dann jede Menge Fehlermeldungen raus:</p>
<p>...dlportio.h(44) : error C2143: Syntaxfehler : Fehlendes '{' vor '__stdcall'<br />
...dlportio.h(46) : error C2146: Syntaxfehler : Fehlendes ')' vor Bezeichner 'Port'</p>
<p>und noch viele mehr!</p>
<p>Ist DlportIO nur für Anwendungen in C++?<br />
oder mache ich sonst was falsch?</p>
<p>Auszug aus der Datei Dlportio.h:</p>
<pre><code class="language-cpp">#ifndef DLPORTIO_H
  #define DLPORTIO_H

#ifdef __cplusplus
extern &quot;C&quot; {
#endif

#ifndef IN
  #define IN
#endif

#define DLPORT_API _stdcall

UCHAR DLPORT_API
DlPortReadPortUchar(
    IN ULONG Port
    );

USHORT DLPORT_API
DlPortReadPortUshort(
    IN ULONG Port
    );

ULONG DLPORT_API
DlPortReadPortUlong(
    IN ULONG Port
    );

VOID DLPORT_API
DlPortReadPortBufferUchar(
    IN ULONG Port,
    IN PUCHAR Buffer,
    IN ULONG  Count
    );

VOID DLPORT_API
DlPortReadPortBufferUshort(
    IN ULONG Port,
    IN PUSHORT Buffer,
    IN ULONG Count
    );

#ifdef __cplusplus
}
#endif

#endif // DLPORTIO_H
</code></pre>
<p>Für Eure Hilfe bedanke ich mich schon mal im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/200701/lpt-port-in-quot-c-quot-mit-hilfe-von-dlportio-ansprechen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 01:14:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/200701.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Dec 2007 16:43:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LPT Port in &amp;quot;C&amp;quot; mit Hilfe von DlPortIO ansprechen on Tue, 18 Dec 2007 16:43:51 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich hab folgendes Problem. Ich arbeite an einem Projekt in &quot;C&quot; (Visaul C++ 6.0 und Win XP).<br />
In diesem Projekt muss ich Daten am LPT Port ausgeben. Ich verwende dafür DlPortIO, bring das Ganze aber nicht zum laufen. In einem C++ Projekt läufts einwandfrei, allerdings in &quot;C&quot; will das ganze nicht. In meinem Projekt hab ich die dlportio.h-Datei includiert und die Lib-Datei dem Projekt hinzugefügt.</p>
<p>Der Compiler spuckt dann jede Menge Fehlermeldungen raus:</p>
<p>...dlportio.h(44) : error C2143: Syntaxfehler : Fehlendes '{' vor '__stdcall'<br />
...dlportio.h(46) : error C2146: Syntaxfehler : Fehlendes ')' vor Bezeichner 'Port'</p>
<p>und noch viele mehr!</p>
<p>Ist DlportIO nur für Anwendungen in C++?<br />
oder mache ich sonst was falsch?</p>
<p>Auszug aus der Datei Dlportio.h:</p>
<pre><code class="language-cpp">#ifndef DLPORTIO_H
  #define DLPORTIO_H

#ifdef __cplusplus
extern &quot;C&quot; {
#endif

#ifndef IN
  #define IN
#endif

#define DLPORT_API _stdcall

UCHAR DLPORT_API
DlPortReadPortUchar(
    IN ULONG Port
    );

USHORT DLPORT_API
DlPortReadPortUshort(
    IN ULONG Port
    );

ULONG DLPORT_API
DlPortReadPortUlong(
    IN ULONG Port
    );

VOID DLPORT_API
DlPortReadPortBufferUchar(
    IN ULONG Port,
    IN PUCHAR Buffer,
    IN ULONG  Count
    );

VOID DLPORT_API
DlPortReadPortBufferUshort(
    IN ULONG Port,
    IN PUSHORT Buffer,
    IN ULONG Count
    );

#ifdef __cplusplus
}
#endif

#endif // DLPORTIO_H
</code></pre>
<p>Für Eure Hilfe bedanke ich mich schon mal im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1422747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1422747</guid><dc:creator><![CDATA[Student10]]></dc:creator><pubDate>Tue, 18 Dec 2007 16:43:51 GMT</pubDate></item></channel></rss>