Probiere mich grade zum ersten mal am Direct X SDK
im VS2010 (auch bei der C++ Express 2008 gabs dieses Prob).
Nun ist das Problem, dass beim erzeugen einer ID2D1Factory
volgender Linkerfehler ausgespuckt wird.
1>Main.obj : error LNK2019: unresolved external symbol _D2D1CreateFactory@16 referenced in function "long __cdecl D2D1CreateFactory(enum D2D1_FACTORY_TYPE,struct _GUID const &,void * *)" (?D2D1CreateFactory@@YAJW4D2D1_FACTORY_TYPE@@ABU_GUID@@PAPAX@Z)
1>C:\Users\Kamil\Documents\Visual Studio 2010\Projects\D2DTest\Debug\D2DTest.exe : fatal error LNK1120: 1 unresolved externals
Könnte mir bitte jemand sagen was am folgenden winzigen Codeblock nicht stimmt?
Danke schonma im Voraus. :?
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include<Windows.h>
#include<D2D1.h>
#include<D2D1Helper.h>
int WINAPI WinMain(
HINSTANCE,
HINSTANCE,
LPSTR,
int)
{
ID2D1Factory *pFactory;
HRESULT hr = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &pFactory);
return 0;
};
|