Getting source code to work in visual studio 2012 and windows 8
Download source code from http://www.d3dcoder.net/d3d11.htm
d3d11CodeSet1.zip
d3d11CodeSet2.zip
d3d11CodeSet3.zip
zip everything into 1 folder.
Download DXSDK_Jun10.exe from microsoft
I encounter S1023 error when running this installer.
Follow step in here to resolve the error.
which is just using cmd.exe and execute both command belows
MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}
MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}
run installer again and everything is fine.
However building chapter 4 from frank luna is problematic.
I add include path to "common" folder from frank luna sample itself.
Also added library path to the same "common" folder.
Added include path and library path to directx folder that I perform installation in first step
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86
NOTE:not sure why I include path to C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64
I have error (???)
UPDATE: I think the error because Effects11.lib in common folder is 32 bit not 64 bit
Update2 : As i advance through frank luna, i try to build error Chapter 6 Drawing in Direct3D\Box
project after i set the include files and lib dependencies as above.
I hit an error unresolved external symbol _D3DX11CreateEffectFromMemory
Turns out this have something todo with Effects.lib.
Following advice from google search to http://stackoverflow.com/a/16647360/1294676
I downloaded effect visual studio project from https://fx11.codeplex.com/
I rebuild Effects11_2010_DXSDK since I'm linking to directx 2010 version as above
and replace effects11.lib in Common Folder.
And voila it's working




This comment has been removed by the author.
ReplyDeleteFrank D. Luna posted updates pertaining to the effects framework and Windows 8 to some of the code from the book at this link: http://www.d3dcoder.net/resources.htm
ReplyDelete