You have to link device drivers without a manifest.
how to fix:
Project + Properties, Linker, Manifest, Generate = No.
fatal error LNK1295: '/DYNAMICBASE' not compatible with '/DRIVER' specification; link without '/DYNAMICBASE'
how to fix:
Under Project/Properties/Configuration Properties/Linker/Advanced
Click on "Randomized Base Address" and select "Default"(default is "Enable Image Randomization")
from the drop-down box.
Click "Apply/OK"
fatal error LNK1295: '/NXCOMPAT:NO' not compatible with '/DRIVER' specification; link without '/NXCOMPAT:NO'
how to fix:
Under Project/Properties/Configuration Properties/Linker/Advanced
Click on "Data Execution Prevention" and select "Default"(default is "Image is not compatible with DEP (/NXCOMPAT:NO)")
from the drop-down box.
Click "Apply/OK"
BTW, compiling driver source code need to set: Native (/SUBSYSTEM:NATIVE)