I've inherited a Windows driver that handles multiple device types. I need to separate it into 2 separated drivers, one for each device. There's code for each device, and then code that is common to the two, and so I've made 3 directories: deviceA, deviceB and common.
I've done this for 2 reasons: 1. it just seems more clear to separate the drivers sources this way 2. build.exe requires a 'sources' file, and so I couldn't have separate files for the 2 drivers in the same directory
Using Visual Studio to invoke ddkbuild.bat, my build fails miserably.
Is possible to do th开发者_StackOverflowis the way I'm attempting? Is there a better/smarter way?
I've modified sources in each device subdirectory. I don't know what to do about the common files.
Using Visual Studio 2008, ddkbuild, DDK 7600.16385.0.
Use a static library to solve this problem. I'm not sure about ddkbuild.bat, what happens when you open the DDK Command Prompt and type build -C -Z
?
精彩评论