Developing a 64-bit DLL and 32-bit DLL in the same solution
===

We are developing a DLL for both 32-bit and 64-bit targets. This DLL references a library in WinDDK. Therefore, for our 32-bit target DLL, we must reference the 32-bit DDK library and for the 64-bit target DLL, we must reference the 64-bit DDK library.

What is the best way to do that? Right now, in our code we have:

#pragma comment (lib , "c:\winddk\i386\...");

but for an x64 target, that path is incorrect. We do not want to modify these paths manually in our code as that is very error prone. If it matters, we're on VS2010.