DirectX Initialization Null Pointer Error

Hi. I've been following braynzarsoft.net's DirectX 11 tutorials and he puts all of his code into one file, but I've been separating it into separate files for easier management later on. I got the window to launch perfectly fine and such but now when I added the code to manage DirectX it launches the window for about a quarter of a second then it minimizes and says "Unhandled exception at 0x00E62010 in perception.exe: 0xC0000005: Access violation reading location 0x00000000." When I look at the locals that are being recognized as null and causing the problem, they are the objects d3dDevice, swapChain, and renderTargetView. How can I stop them from becoming null when they are used in the DirectX initialization? Here's my code:
main.cpp
http://pastebin.com/qGP6DUFn
window.cpp
http://pastebin.com/M7dTs7fA
window.h
http://pastebin.com/LZZUE3eB
dxmanager.cpp
http://pastebin.com/9Nb2YddF
dxmanager.h
http://pastebin.com/6v3nQb7h
Topic archived. No new replies allowed.