Hi!
Ich habe einfach ein Programm geschrieben,das ein DirectInput Obbjekt erstellt.Aber es kommen immer folgende Fehlermeldungen,die ich überhaupt nicht verstshe:
DirectInput.obj : error LNK2001: Nichtaufgeloestes externes Symbol _DirectInput8Create@20
DirectInput.obj : error LNK2001: Nichtaufgeloestes externes Symbol _IID_IDirectInput8A
Debug/DirectInput.exe : fatal error LNK1120: 2 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
Hier der Code:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <TriBase.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
LPDIRECTINPUT8 g_pDirectInput = NULL;
if(FAILED(DirectInput8Create(hInstance,
0x800,
IID_IDirectInput8,
(void**) (&g_pDirectInput),
NULL)))
{
MessageBox(NULL, "Du hast es geschafft", "Neger", MB_OK | MB_ICONINFORMATION);
return 1;
} else {
MessageBox(NULL, "Du hast versagt", "B-Tight", MB_OK | MB_ICONEXCLAMATION);
}
return 0;
}
|