Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
![]() |
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
#include <Tribase.h> tbConfig g_Config; tbFont * g_pFont1 = NULL; float g_fTime = 0.0f; tbResult Move(float fNumSecsPassed) { g_fTime += fNumSecsPassed; return TB_OK; } tbResult Render(float fNumSecsPassed) { char pcSP[256]; tbDirect3D::GetDevice()->Clear(0, NULL, D3DCLEAR_TARGET, 0, 1.0f, 0); tbDirect3D::GetDevice()->BeginScene(); sprintf(pcSP, "Vergangene Zeit: %.3f", g_fTime); g_pFont1->Begin(); g_pFont1->DrawText(tbVector2(10.0f), pcSP); g_pFont1->End(); tbDirect3D::GetDevice()->EndScene(); tbDirect3D::GetDevice()->Present(NULL, NULL, NULL, NULL); return TB_OK; } tbResult CleanUp() { TB_SAFE_DELETE(g_pFont1); tbDirect3D::Exit(); tbExit(); return TB_OK; } int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, char * pcCommandLine, int nShowCommand) { tbInit(); if(int r = tbDoConfigDialog(&g_Config)) { if(r == TB_CANCELED) { CleanUp(); return -1; } else { TB_ERROR_MESSAGE("Fehler im ConfigDialog"); CleanUp(); return -1; } } if(tbDirect3D::Init(&g_Config, "Models die zweite")) { TB_ERROR_MESSAGE("Fehler im tbDirect3D::Init"); CleanUp(); return -1; } g_pFont1 = new tbFont; if(g_pFont1->Init("Data\\Fonts\\TrebuchetMSNormal.tga","Data\\Fonts\\TrebuchetMSNormal.tbf")) { TB_ERROR_MESSAGE("Fehler in tbFont::Init"); CleanUp(); return -1; } if(tbDoMessageLoop(Move, Render)) { TB_ERROR_MESSAGE("Fehler in der MessageLoop"); CleanUp(); return -1; } CleanUp(); return 0; } |
Zitat von »"David Scherfgen"«
Hmm... vielleicht "deinstallierst" Du Snorkys Update mal (danach die Engine neu kompilieren). Mal sehen, ob der Fehler dann auch noch auftritt. Ach ja, passiert das auch bei den Programmen von der Buch-CD-ROM? Falls ja: Passiert es immer noch, wenn Du wieder die originale TriBase-DLL nimmst, also die von der CD-ROM?
![]() |
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 |
[Bis hier ganz normal...] Generieren von Code... Linker-Vorgang läuft... Bibliothek Debug/TriBaseD.lib und Objekt Debug/TriBaseD.exp wird erstellt 1 Datei(en) kopiert. 1 Datei(en) kopiert. Zugriff verweigert 0 Datei(en) kopiert. Fehler beim Ausführen von g:\winnt\system32\cmd.exe. TriBaseD.dll - 1 Fehler, 0 Warnung(en) |
![]() |
Quellcode |
1 |
LINK : warning LNK4089: Alle Verweise auf "OLEAUT32.dll" wurden durch /OPT:REF verworfen |
Werbeanzeige