<?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[directx 3d]]></title><description><![CDATA[<p>Hi Leute,<br />
ich wollt mal anfangen mit directx zu programmieren. Dazu hab ich auch ein Tutorial gefunden und wollt natürlich gleich mal ausprobieren ob das auch funktioniert. Ich bin so weit gekommen:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include&lt;d3d9.h&gt;
#pragma comment (lib, &quot;d3d9.lib&quot;)

LPDIRECT3D9 d3d;    // the pointer to our Direct3D interface
LPDIRECT3DDEVICE9 d3ddev;    // the pointer to the device class

//void initD3D(HWND hWnd);    // sets up and initializes Direct3D
void render_frame(void);    // renders a single frame
void cleanD3D(void);    // closes Direct3D and releases memory

void initD3D(HWND hwnd)
{
    d3d = Direct3DCreate9(D3D_SDK_VERSION);    // create the Direct3D interface

    D3DPRESENT_PARAMETERS d3dpp;    // create a struct to hold various device information

    ZeroMemory(&amp;d3dpp, sizeof(d3dpp));    // clear out the struct for use
    d3dpp.Windowed = TRUE;    // program windowed, not fullscreen
    d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;    // discard old frames
    d3dpp.hDeviceWindow = hwnd;    // set the window to be used by Direct3D

    // create a device class using this information and information from the d3dpp stuct
    d3d-&gt;CreateDevice(D3DADAPTER_DEFAULT,
                      D3DDEVTYPE_HAL,
                      hwnd,
                      D3DCREATE_SOFTWARE_VERTEXPROCESSING,
                      &amp;d3dpp,
                      &amp;d3ddev);

    return;
}

/*  Declare Windows procedure  */
HRESULT CreateDevice(
    UINT Adapter,
    D3DDEVTYPE DeviceType,
    HWND hFocusWindow,
    DWORD BehaviorFlags,
    D3DPRESENT_PARAMETERS *pPresentationParameters,
    IDirect3DDevice9 **ppReturnedDeviceInterface
);
</code></pre>
<p>Und jetzt kommt da immer ne Fehlermeldung:</p>
<p>[Linker error] undefined reference to <code>Direct3DCreate9@4' \[Linker error\] undefined reference to</code>WinMain@16'<br />
ld returned 1 exit status</p>
<p>Und jetzt weiß ich nich was ich machen soll dass es weitergeht...<br />
Kann mir da wer weiterhelfen?</p>
<p>MfG Daniel</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/222561/directx-3d</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 16:20:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/222561.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Sep 2008 16:17:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to directx 3d on Sun, 14 Sep 2008 16:17:54 GMT]]></title><description><![CDATA[<p>Hi Leute,<br />
ich wollt mal anfangen mit directx zu programmieren. Dazu hab ich auch ein Tutorial gefunden und wollt natürlich gleich mal ausprobieren ob das auch funktioniert. Ich bin so weit gekommen:</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include&lt;d3d9.h&gt;
#pragma comment (lib, &quot;d3d9.lib&quot;)

LPDIRECT3D9 d3d;    // the pointer to our Direct3D interface
LPDIRECT3DDEVICE9 d3ddev;    // the pointer to the device class

//void initD3D(HWND hWnd);    // sets up and initializes Direct3D
void render_frame(void);    // renders a single frame
void cleanD3D(void);    // closes Direct3D and releases memory

void initD3D(HWND hwnd)
{
    d3d = Direct3DCreate9(D3D_SDK_VERSION);    // create the Direct3D interface

    D3DPRESENT_PARAMETERS d3dpp;    // create a struct to hold various device information

    ZeroMemory(&amp;d3dpp, sizeof(d3dpp));    // clear out the struct for use
    d3dpp.Windowed = TRUE;    // program windowed, not fullscreen
    d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;    // discard old frames
    d3dpp.hDeviceWindow = hwnd;    // set the window to be used by Direct3D

    // create a device class using this information and information from the d3dpp stuct
    d3d-&gt;CreateDevice(D3DADAPTER_DEFAULT,
                      D3DDEVTYPE_HAL,
                      hwnd,
                      D3DCREATE_SOFTWARE_VERTEXPROCESSING,
                      &amp;d3dpp,
                      &amp;d3ddev);

    return;
}

/*  Declare Windows procedure  */
HRESULT CreateDevice(
    UINT Adapter,
    D3DDEVTYPE DeviceType,
    HWND hFocusWindow,
    DWORD BehaviorFlags,
    D3DPRESENT_PARAMETERS *pPresentationParameters,
    IDirect3DDevice9 **ppReturnedDeviceInterface
);
</code></pre>
<p>Und jetzt kommt da immer ne Fehlermeldung:</p>
<p>[Linker error] undefined reference to <code>Direct3DCreate9@4' \[Linker error\] undefined reference to</code>WinMain@16'<br />
ld returned 1 exit status</p>
<p>Und jetzt weiß ich nich was ich machen soll dass es weitergeht...<br />
Kann mir da wer weiterhelfen?</p>
<p>MfG Daniel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1581795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1581795</guid><dc:creator><![CDATA[killmichnich]]></dc:creator><pubDate>Sun, 14 Sep 2008 16:17:54 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Sun, 14 Sep 2008 16:19:42 GMT]]></title><description><![CDATA[<p>wenn du mit der fehlermeldung nix anfangen kannst, solltest du dich ned mit directx befassen sondern mit den grundlagen der programmierung.</p>
<pre><code class="language-cpp">#pragma comment(lib, &quot;deinelib.lib&quot;)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1581798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1581798</guid><dc:creator><![CDATA[asdca]]></dc:creator><pubDate>Sun, 14 Sep 2008 16:19:42 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Sun, 14 Sep 2008 17:34:36 GMT]]></title><description><![CDATA[<p>ja aber welche lib muss ich denn da einbinden?</p>
<p>woher soll ichs denn wissen wenn das bei mir noch nie vorkam? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1581842</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1581842</guid><dc:creator><![CDATA[killmichnich]]></dc:creator><pubDate>Sun, 14 Sep 2008 17:34:36 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Sun, 14 Sep 2008 17:43:51 GMT]]></title><description><![CDATA[<p>was weiss ich, d3d9.lib oder was weiss ich was directx noch für müll braucht. google selbst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1581849</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1581849</guid><dc:creator><![CDATA[asdca]]></dc:creator><pubDate>Sun, 14 Sep 2008 17:43:51 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Mon, 15 Sep 2008 13:30:55 GMT]]></title><description><![CDATA[<p>folgende lib's gibt es:</p>
<p>dinput8.lib<br />
dxguid.lib<br />
dsound.lib<br />
d3dx9.lib<br />
d3d9.lib<br />
dxerr9.lib</p>
<p>Du brauchst, aber für dein Beispiel nur diese:</p>
<p>d3d9.lib</p>
<p>wenn das nicht funktioniert, dann include:</p>
<p>d3dx9.lib</p>
<p>hinzu.. ansonsten einfach alle..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582178</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582178</guid><dc:creator><![CDATA[mRXXo]]></dc:creator><pubDate>Mon, 15 Sep 2008 13:30:55 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Mon, 15 Sep 2008 15:19:42 GMT]]></title><description><![CDATA[<p>@asdca:<br />
wenn du keinein bock hast, leuten zu helfen, dann lass es einfach.<br />
Deine arrogante Art geht einen auf den Sack.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582259</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582259</guid><dc:creator><![CDATA[vlad_tepesch]]></dc:creator><pubDate>Mon, 15 Sep 2008 15:19:42 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Mon, 15 Sep 2008 15:21:27 GMT]]></title><description><![CDATA[<p>ich helf den leuten mehr als du, du teppichflicker.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582260</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582260</guid><dc:creator><![CDATA[asdca]]></dc:creator><pubDate>Mon, 15 Sep 2008 15:21:27 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Mon, 15 Sep 2008 15:29:58 GMT]]></title><description><![CDATA[<p>@asdca: Bist ja mal ein richtig armer Knilch wa. Muss ich vlad_tepesch mal recht geben, wenn du nicht helfen willst bringen deine unqualifizierten Aussagen rein gar nichts. Dann vllt. besser Klappe halten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582267</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582267</guid><dc:creator><![CDATA[CrazyPlaya]]></dc:creator><pubDate>Mon, 15 Sep 2008 15:29:58 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Mon, 15 Sep 2008 15:31:35 GMT]]></title><description><![CDATA[<p>der knilch bist du hier. ich kann programmieren im ggs zu dir, weil ich die entsprechenden bücher gelesen habe und nicht nur im winapi forum frage um meine friends in der skool mit irgendwelchen kiddie progs zu beeindrucken. Wenn ihr euch mühe gebt und ich erkenne, daß ihr euch echt vorher informiert habt über google, faq und sufu, dann helfe ich auch gerne. das fällt jedem auf, der meine posts aufmerksam liest. schmarotzer die fertigen code hingeklatscht haben wollen, kriegen von mir eben eiskalt eins auf die mütze, heul halt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582269</guid><dc:creator><![CDATA[asdca]]></dc:creator><pubDate>Mon, 15 Sep 2008 15:31:35 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Mon, 15 Sep 2008 17:07:28 GMT]]></title><description><![CDATA[<p>Also du Vollhegel, ich bin seit 4 Jahren Anwendungsentwickler und schreibe nicht irgendwelche Kiddie Progs. Und jetzt erzähl mir doch mal wo hier irgendwer nach fertigem Quellcode gefragt hat. Klar ist das ein Anfängerfehler wenn man die Libs nicht einbindet. Wenn man aber nicht weiß woher der Fehler kommt hat man auch nicht viel Ansatz danach zu googlen. Und Bücher gelesen habe ich selbst genug. Und dennoch habe ich hin und wieder fragen. Wenn hier jemadn nach fertigem Code gefragt hätte würde ich deine Aussage jetzt verstehen aber so ist das echt arm. Aber egal mit so einem wie dir will ich mich auch gar nicht rumstreiten. Wenn in deinen Augen jemand eine dumme Frage stellt, die es im übrigen nicht gibt, dann antworte doch einfach gar nicht. Es gibt genug andere die keine Probleme damit haben ne kurze Hilfestellung zu geben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582328</guid><dc:creator><![CDATA[CrazyPlaya]]></dc:creator><pubDate>Mon, 15 Sep 2008 17:07:28 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Mon, 15 Sep 2008 18:39:34 GMT]]></title><description><![CDATA[<p>CrazyPlaya schrieb:</p>
<blockquote>
<p>Also du Vollhegel, ich bin seit 4 Jahren Anwendungsentwickler und schreibe nicht irgendwelche Kiddie Progs. Und jetzt erzähl mir doch mal wo hier irgendwer nach fertigem Quellcode gefragt hat. Klar ist das ein Anfängerfehler wenn man die Libs nicht einbindet. Wenn man aber nicht weiß woher der Fehler kommt hat man auch nicht viel Ansatz danach zu googlen. Und Bücher gelesen habe ich selbst genug. Und dennoch habe ich hin und wieder fragen. Wenn hier jemadn nach fertigem Code gefragt hätte würde ich deine Aussage jetzt verstehen aber so ist das echt arm. Aber egal mit so einem wie dir will ich mich auch gar nicht rumstreiten. Wenn in deinen Augen jemand eine dumme Frage stellt, die es im übrigen nicht gibt, dann antworte doch einfach gar nicht. Es gibt genug andere die keine Probleme damit haben ne kurze Hilfestellung zu geben.</p>
</blockquote>
<p>FULL ACK</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582426</guid><dc:creator><![CDATA[vlad_tepesch]]></dc:creator><pubDate>Mon, 15 Sep 2008 18:39:34 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Mon, 15 Sep 2008 19:32:01 GMT]]></title><description><![CDATA[<p>CrazyPlaya schrieb:</p>
<blockquote>
<p>Klar ist das ein Anfängerfehler wenn man die Libs nicht einbindet. Wenn man aber nicht weiß woher der Fehler kommt hat man auch nicht viel Ansatz danach zu googlen.</p>
</blockquote>
<p>Das is nen Scherz, oder? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
<p><a href="http://www.google.de/search?hl=de&amp;q=%5BLinker+error%5D+undefined+reference+to+%60Direct3DCreate9%404%27+&amp;btnG=Google-Suche&amp;meta=" rel="nofollow">http://www.google.de/search?hl=de&amp;q=[Linker+error]+undefined+reference+to+`Direct3DCreate9%404'+&amp;btnG=Google-Suche&amp;meta=</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582456</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582456</guid><dc:creator><![CDATA[gosha16]]></dc:creator><pubDate>Mon, 15 Sep 2008 19:32:01 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Tue, 16 Sep 2008 11:41:40 GMT]]></title><description><![CDATA[<p>also ich hatte das ganze ja eigentlich mit dev c++ gemacht. Ich hab alle libs die mRXXo freundlicherweise genannt hat eingebunden aber es kam immer noch ...</p>
<p>dann hab ichs mal mit visual c++ gemacht und da hats funktioniert</p>
<p>woran kann das liegen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582799</guid><dc:creator><![CDATA[killmichnich]]></dc:creator><pubDate>Tue, 16 Sep 2008 11:41:40 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Tue, 16 Sep 2008 13:19:40 GMT]]></title><description><![CDATA[<p>versuchs ma hier mit:</p>
<p><a href="http://free.pages.at/tron2d/DX9-Devpack/DirectX90c.DevPak" rel="nofollow">http://free.pages.at/tron2d/DX9-Devpack/DirectX90c.DevPak</a></p>
<p>aber wiseo willst du den dev c++ benützen wenn du visual studio hast?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582876</guid><dc:creator><![CDATA[mRXXo]]></dc:creator><pubDate>Tue, 16 Sep 2008 13:19:40 GMT</pubDate></item><item><title><![CDATA[Reply to directx 3d on Tue, 16 Sep 2008 13:20:45 GMT]]></title><description><![CDATA[<p>doppel post sry!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1582877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1582877</guid><dc:creator><![CDATA[mRXXo]]></dc:creator><pubDate>Tue, 16 Sep 2008 13:20:45 GMT</pubDate></item></channel></rss>