<?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[Dateien]]></title><description><![CDATA[<p>hallo<br />
Also, erstmal alle eine Panzerfaust rausholen und damit auf MS VS 2005 schießen.<br />
ne Scherz. aber ich zumindest bin kurz vorm ausrasten. Der (die) Fehler basiert 100% auf meiner unwissenheit, aber egal.<br />
Hab ein wenig mit HGE (Diese 2D-Spiele-Engine) Programmiert, jetzt wollte ich es mal in einem Child-fenster ausprobieren. Hab dabei auch noch VS eine Windows-Anwedung erstellen lassen, mit stdafx u.ä. Also kein eigenbau mit nur einer Datei^^&quot;&quot;.<br />
Nun hab ich ein problem: ich hab überhaupt keine ahnung, was ich wohin includen soll, egal, was ich ausprobiert hab, es scheitert fatal. folgende Dateien müssen mit rein:</p>
<p>hgeh.h // hier sind die Deklarationen von hge-objekten/Funktionen drin<br />
hgec.cpp // hier sind Definitionen der Funktionen</p>
<p>der Rest ist das von VS erstellte. in StdAfx.h sind auch die HGE-header, um die Engine zu verwenden, in HGEinCW.cpp ist die Main-Funktion, in HGEinCW.h hab ich noch<br />
#include &quot;hgeh.h&quot;<br />
hingetan,in hgec.cpp steht<br />
#include &quot;stdafx.h&quot;<br />
#include &quot;hgeh.h&quot;<br />
am anfang, in HGEinCW.cpp ist folgendes eingebunden:<br />
#include &quot;stdafx.h&quot;<br />
#include &quot;HGEinCW.h&quot;</p>
<p>ich bekomme Linker Fehler:</p>
<pre><code>hgec.obj : error LNK2005: &quot;struct hgeQuad * Quad&quot; (?Quad@@3PAUhgeQuad@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeSprite * spr&quot; (?spr@@3PAVhgeSprite@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeSprite * spt&quot; (?spt@@3PAVhgeSprite@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeSprite * tar&quot; (?tar@@3PAVhgeSprite@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeFont * fnt&quot; (?fnt@@3PAVhgeFont@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeParticleSystem * * par&quot; (?par@@3PAPAVhgeParticleSystem@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;unsigned long tex&quot; (?tex@@3KA) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;unsigned long target&quot; (?target@@3KA) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;unsigned long snd&quot; (?snd@@3KA) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;struct GSpace GlobalSpace&quot; (?GlobalSpace@@3UGSpace@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class HGE * hge&quot; (?hge@@3PAVHGE@@A) ist bereits in HGEinCW.obj definiert.
</code></pre>
<p>hier nochmal meine hgeh.h und HGEinCW.h:</p>
<pre><code class="language-cpp">// hgeh.h
HGE *hge=0;

hgeQuad				Quad[4];
hgeSprite			*spr;
hgeSprite			*spt;
hgeSprite			*tar;
hgeFont				*fnt;
hgeParticleSystem	*par[4];

HTEXTURE tex;

HTARGET target;

HEFFECT snd;

enum{GSX=0, GSY, GSDX, GSDY, GSSPD, GSFR};

struct GSpace
{
	DWORD space[8];
};

GSpace GlobalSpace;

void boom(int, int, int);

bool FrameFunc();
bool RenderFunc();
bool FocusGainFunc();
void writeGS(void*,short);
float GetGSfloat(short);
int GetGSint(short);

POINT QuadFromMP(float x, float y, hgeQuad *Quad);
</code></pre>
<pre><code class="language-cpp">//HGEinCW.h
#pragma once
#pragma comment(lib, &quot;hge.lib&quot;)
#pragma comment(lib, &quot;hgehelp.lib&quot;)

#include &quot;resource.h&quot;
#include &quot;hgeh.h&quot;
</code></pre>
<p>hoffe, ihr könnt mir irgendwie helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174208/dateien</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 14:55:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174208.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Feb 2007 01:36:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dateien on Sat, 24 Feb 2007 01:36:08 GMT]]></title><description><![CDATA[<p>hallo<br />
Also, erstmal alle eine Panzerfaust rausholen und damit auf MS VS 2005 schießen.<br />
ne Scherz. aber ich zumindest bin kurz vorm ausrasten. Der (die) Fehler basiert 100% auf meiner unwissenheit, aber egal.<br />
Hab ein wenig mit HGE (Diese 2D-Spiele-Engine) Programmiert, jetzt wollte ich es mal in einem Child-fenster ausprobieren. Hab dabei auch noch VS eine Windows-Anwedung erstellen lassen, mit stdafx u.ä. Also kein eigenbau mit nur einer Datei^^&quot;&quot;.<br />
Nun hab ich ein problem: ich hab überhaupt keine ahnung, was ich wohin includen soll, egal, was ich ausprobiert hab, es scheitert fatal. folgende Dateien müssen mit rein:</p>
<p>hgeh.h // hier sind die Deklarationen von hge-objekten/Funktionen drin<br />
hgec.cpp // hier sind Definitionen der Funktionen</p>
<p>der Rest ist das von VS erstellte. in StdAfx.h sind auch die HGE-header, um die Engine zu verwenden, in HGEinCW.cpp ist die Main-Funktion, in HGEinCW.h hab ich noch<br />
#include &quot;hgeh.h&quot;<br />
hingetan,in hgec.cpp steht<br />
#include &quot;stdafx.h&quot;<br />
#include &quot;hgeh.h&quot;<br />
am anfang, in HGEinCW.cpp ist folgendes eingebunden:<br />
#include &quot;stdafx.h&quot;<br />
#include &quot;HGEinCW.h&quot;</p>
<p>ich bekomme Linker Fehler:</p>
<pre><code>hgec.obj : error LNK2005: &quot;struct hgeQuad * Quad&quot; (?Quad@@3PAUhgeQuad@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeSprite * spr&quot; (?spr@@3PAVhgeSprite@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeSprite * spt&quot; (?spt@@3PAVhgeSprite@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeSprite * tar&quot; (?tar@@3PAVhgeSprite@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeFont * fnt&quot; (?fnt@@3PAVhgeFont@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class hgeParticleSystem * * par&quot; (?par@@3PAPAVhgeParticleSystem@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;unsigned long tex&quot; (?tex@@3KA) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;unsigned long target&quot; (?target@@3KA) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;unsigned long snd&quot; (?snd@@3KA) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;struct GSpace GlobalSpace&quot; (?GlobalSpace@@3UGSpace@@A) ist bereits in HGEinCW.obj definiert.
hgec.obj : error LNK2005: &quot;class HGE * hge&quot; (?hge@@3PAVHGE@@A) ist bereits in HGEinCW.obj definiert.
</code></pre>
<p>hier nochmal meine hgeh.h und HGEinCW.h:</p>
<pre><code class="language-cpp">// hgeh.h
HGE *hge=0;

hgeQuad				Quad[4];
hgeSprite			*spr;
hgeSprite			*spt;
hgeSprite			*tar;
hgeFont				*fnt;
hgeParticleSystem	*par[4];

HTEXTURE tex;

HTARGET target;

HEFFECT snd;

enum{GSX=0, GSY, GSDX, GSDY, GSSPD, GSFR};

struct GSpace
{
	DWORD space[8];
};

GSpace GlobalSpace;

void boom(int, int, int);

bool FrameFunc();
bool RenderFunc();
bool FocusGainFunc();
void writeGS(void*,short);
float GetGSfloat(short);
int GetGSint(short);

POINT QuadFromMP(float x, float y, hgeQuad *Quad);
</code></pre>
<pre><code class="language-cpp">//HGEinCW.h
#pragma once
#pragma comment(lib, &quot;hge.lib&quot;)
#pragma comment(lib, &quot;hgehelp.lib&quot;)

#include &quot;resource.h&quot;
#include &quot;hgeh.h&quot;
</code></pre>
<p>hoffe, ihr könnt mir irgendwie helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234464</guid><dc:creator><![CDATA[Azrael* il Meraz]]></dc:creator><pubDate>Sat, 24 Feb 2007 01:36:08 GMT</pubDate></item><item><title><![CDATA[Reply to Dateien on Sat, 24 Feb 2007 13:28:28 GMT]]></title><description><![CDATA[<p>Mach mal in deine Headerdateien ganz oben das rein:</p>
<pre><code class="language-cpp">#pragma once
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234638</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234638</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Sat, 24 Feb 2007 13:28:28 GMT</pubDate></item><item><title><![CDATA[Reply to Dateien on Sat, 24 Feb 2007 20:58:41 GMT]]></title><description><![CDATA[<p>ne, hilft nicht^^&quot;. Ich mein - wenn das doch doppelt definiert wäre, würde der compiler meckern, nicht der linker.</p>
<p>Jap - hab ausprobiert - klappt nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Kann es noch etwas anderes sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234878</guid><dc:creator><![CDATA[Azrael* il Meraz]]></dc:creator><pubDate>Sat, 24 Feb 2007 20:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to Dateien on Sun, 25 Feb 2007 08:42:12 GMT]]></title><description><![CDATA[<p>Siehe mein letztes Posting in:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-174167.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-174167.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234969</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234969</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 25 Feb 2007 08:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to Dateien on Sun, 25 Feb 2007 14:33:38 GMT]]></title><description><![CDATA[<p>super, danke.</p>
<p>hmmm... nun meckert er wegen funktionen ^^&quot;. kann man das bei Funktionen genauso machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1235183</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1235183</guid><dc:creator><![CDATA[Azrael* il Meraz]]></dc:creator><pubDate>Sun, 25 Feb 2007 14:33:38 GMT</pubDate></item><item><title><![CDATA[Reply to Dateien on Sun, 25 Feb 2007 17:07:51 GMT]]></title><description><![CDATA[<p>Azrael, il Meraz schrieb:</p>
<blockquote>
<p>kann man das bei Funktionen genauso machen?</p>
</blockquote>
<p>Ja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1235307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1235307</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 25 Feb 2007 17:07:51 GMT</pubDate></item><item><title><![CDATA[Reply to Dateien on Sun, 25 Feb 2007 17:16:26 GMT]]></title><description><![CDATA[<p>thank you very much ^^&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1235312</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1235312</guid><dc:creator><![CDATA[Azrael* il Meraz]]></dc:creator><pubDate>Sun, 25 Feb 2007 17:16:26 GMT</pubDate></item></channel></rss>