c++ - Error in DirectX example from Microsoft -


i'm trying learn c++ , directx, got vs 2012 express desktop today windows 7. should mention had directx sdk vs 2010 installed.

the first of 7 tutorials compile fine, rest giving errors. because first 1 runs think include , library directories set fine.

source here, put .fx file in @ bottom compiler errors. if don't want click megafileupload it's directx draw triangle tutorial (2) microsoft.

tutorial files on megaupload

warning 1   warning lnk4075: ignoring '/editandcontinue' due '/safeseh' specification    c:\cpp\directx_tutorial\c++\tutorial02\tutorial02.obj   tutorial02  error   2   error lnk2019: unresolved external symbol _d3dcompilefromfile@36 referenced in function "long __cdecl compileshaderfromfile(wchar_t *,char const *,char const *,struct id3d10blob * *)" (?compileshaderfromfile@@yajpa_wpbd1papauid3d10blob@@@z)    c:\cpp\directx_tutorial\c++\tutorial02\tutorial02.obj   tutorial02  error   3   error lnk1120: 1 unresolved externals   c:\cpp\directx_tutorial\c++\debug\tutorial02.exe    tutorial02 

also there forum here can rant on? c++, windows api, directx, , visual studio unnecessarily difficult use.

recheck if import libraries correct , if you're importing folder corresponding processor architecture. also, double check project's encoding, directx doesnt work on encodings other unicode.


Comments