I wrote a Source file for a TDI downloaded by the online download, but there is a problem when compiling. Can't open include file "netpnp.h" and can't open input file "wdm.lib"
Finally, the problem is found, and again summarize:
Problem: Makefile's problem, Microsoft proposes usually use Microsoft as Makefile, don't change, if you change, change the Source file, some source programs may change Makefile according to the actual situation of your machine, so when you use At this time, Build has an error. At this time, you can try to replace with Microsoft's Makefile files, write some Source files yourself, and the problem may go to resolve. The general driver is composed of source files, makefile, sources, sometimes there is RC file, often use Microsoft's Makefile, you need to write SOURSES files yourself, some special circumstances, write makefile files yourself, and the file content has Sourcees The content that should be designed, you can do not need a Sources file. Under normal circumstances, both files are needed. The general situation uses Microsoft's own Makefile file, as for the Sources file, find the Sources file in DDK to imitate a copy of OK.
Probably summarizes some of the experiences after this problem: Sometimes Build has problems, you can take a look at the * .log file, sometimes configuring the error will be displayed in the * .log file instead of * .rr. Normally, the error message appears in * .rr, Warning information appears inside * .war.