<?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[Bestimmte Header-Datei einbinden]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte in mein Projekt die Header-Datei &quot;vxlapi.h&quot; von Vector einbinden.<br />
Pointer auf die einzelnen Funktionen habe ich wie folgt innerhalb meiner Klasse deklariert:</p>
<pre><code class="language-cpp">XLGETAPPLCONFIG                xlGetApplConfig;
	XLSETAPPLCONFIG                xlSetApplConfig;
	XLGETDRIVERCONFIG              xlGetDriverConfig;
	XLGETCHANNELINDEX              xlGetChannelIndex;
	XLGETCHANNELMASK               xlGetChannelMask;
	XLOPENPORT                     xlOpenPort;
	XLSETTIMERRATE                 xlSetTimerRate;
	XLRESETCLOCK                   xlResetClock;
	XLSETNOTIFICATION              xlSetNotification;
	XLFLUSHRECEIVEQUEUE            xlFlushReceiveQueue;
	XLGETRECEIVEQUEUELEVEL         xlGetReceiveQueueLevel
	XLACTIVATECHANNEL              xlActivateChannel;
	XLRECEIVE                      xlReceive;                        
	XLGETEVENTSTRING               xlGetEventString;
	XLGETERRORSTRING               xlGetErrorString;
	XLGETSYNCTIME                  xlGetSyncTime;
	XLGENERATESYNCPULSE            xlGenerateSyncPulse;
	XLPOPUPHWCONFIG                xlPopupHwConfig;
	XLDEACTIVATECHANNEL            xlDeactivateChannel;
	XLCLOSEPORT                    xlClosePort;
[cpp]

Die Header-Datei sieht wie folgt aus:
[cpp]
z.B.
/*------------------------------------------------------------------------------
xlActivateChannel():
--------------------------------------------------------------------------------
The selected channels go 'on the bus'. Type of the bus is specified by busType parameter.
Additional parameters can be specified by flags parameter.
*/

DECL_STDXL_FUNC ( xlActivateChannel, XLACTIVATECHANNEL, (
                  XLportHandle  portHandle, 
                  XLaccess      accessMask, 
                  unsigned int  busType, 
                  unsigned int  flags)
                  );
</code></pre>
<p>Es scheint allerdings so, als ob die Header-Datei gar nicht eingelesen wird, da ich beim Kompilieren für jede der Deklarationen folgende Fehler erhalte:<br />
error C2501: 'Class1::XLGETAPPLCONFIG': Fehlende Speicherklasse oder Typspezifizierer<br />
error C2501: 'Class1:xlGetApplConfig': Fehlende Speicherklasse oder Typspezifizierer<br />
error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'xlGetApplConfig'</p>
<p>Kann mir jemand helfen?<br />
Hab schon versucht, den Include an andere Stellen zu verlegen. Dies allerdings immer ohne Erfolg.</p>
<p>Viele Grüße<br />
EntonH</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/209131/bestimmte-header-datei-einbinden</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 09:21:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/209131.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Mar 2008 07:50:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bestimmte Header-Datei einbinden on Thu, 27 Mar 2008 07:50:28 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte in mein Projekt die Header-Datei &quot;vxlapi.h&quot; von Vector einbinden.<br />
Pointer auf die einzelnen Funktionen habe ich wie folgt innerhalb meiner Klasse deklariert:</p>
<pre><code class="language-cpp">XLGETAPPLCONFIG                xlGetApplConfig;
	XLSETAPPLCONFIG                xlSetApplConfig;
	XLGETDRIVERCONFIG              xlGetDriverConfig;
	XLGETCHANNELINDEX              xlGetChannelIndex;
	XLGETCHANNELMASK               xlGetChannelMask;
	XLOPENPORT                     xlOpenPort;
	XLSETTIMERRATE                 xlSetTimerRate;
	XLRESETCLOCK                   xlResetClock;
	XLSETNOTIFICATION              xlSetNotification;
	XLFLUSHRECEIVEQUEUE            xlFlushReceiveQueue;
	XLGETRECEIVEQUEUELEVEL         xlGetReceiveQueueLevel
	XLACTIVATECHANNEL              xlActivateChannel;
	XLRECEIVE                      xlReceive;                        
	XLGETEVENTSTRING               xlGetEventString;
	XLGETERRORSTRING               xlGetErrorString;
	XLGETSYNCTIME                  xlGetSyncTime;
	XLGENERATESYNCPULSE            xlGenerateSyncPulse;
	XLPOPUPHWCONFIG                xlPopupHwConfig;
	XLDEACTIVATECHANNEL            xlDeactivateChannel;
	XLCLOSEPORT                    xlClosePort;
[cpp]

Die Header-Datei sieht wie folgt aus:
[cpp]
z.B.
/*------------------------------------------------------------------------------
xlActivateChannel():
--------------------------------------------------------------------------------
The selected channels go 'on the bus'. Type of the bus is specified by busType parameter.
Additional parameters can be specified by flags parameter.
*/

DECL_STDXL_FUNC ( xlActivateChannel, XLACTIVATECHANNEL, (
                  XLportHandle  portHandle, 
                  XLaccess      accessMask, 
                  unsigned int  busType, 
                  unsigned int  flags)
                  );
</code></pre>
<p>Es scheint allerdings so, als ob die Header-Datei gar nicht eingelesen wird, da ich beim Kompilieren für jede der Deklarationen folgende Fehler erhalte:<br />
error C2501: 'Class1::XLGETAPPLCONFIG': Fehlende Speicherklasse oder Typspezifizierer<br />
error C2501: 'Class1:xlGetApplConfig': Fehlende Speicherklasse oder Typspezifizierer<br />
error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'xlGetApplConfig'</p>
<p>Kann mir jemand helfen?<br />
Hab schon versucht, den Include an andere Stellen zu verlegen. Dies allerdings immer ohne Erfolg.</p>
<p>Viele Grüße<br />
EntonH</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1481138</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1481138</guid><dc:creator><![CDATA[EntonH]]></dc:creator><pubDate>Thu, 27 Mar 2008 07:50:28 GMT</pubDate></item><item><title><![CDATA[Reply to Bestimmte Header-Datei einbinden on Thu, 27 Mar 2008 08:29:29 GMT]]></title><description><![CDATA[<p>also ich seh da keine Deklaration von Pointern und Namen sondern nur eine Liste von Bezeichnern. Der Compiler interpretiert jede Zeile wie folgt:</p>
<pre><code class="language-cpp">XLGETAPPLCONFIG                xlGetApplConfig;
</code></pre>
<p>Das sieht für dem Kompiler aus wie eine Variablendeklaration, udn zwar eine Variable des Typs XLGETAPPLCONFIG mit Variablennamen xlGetApplConfig - deshalb mosert er, weil er die Klasse XLGETAPPLCONFIG nicht kennt.</p>
<p>Mit dem Teil danach kann ich ehrlich gesagt nichts anfangen, ist das reines C++, oder beutzt du orgendwelche Frameworks die da erst noch code draus machen müssen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1481152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1481152</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 27 Mar 2008 08:29:29 GMT</pubDate></item></channel></rss>