that kind of errors occurs in c/c++ when a library is missing, by default, the sample projects add this library references, maybe you get off this library reference. try this:
find in samples the requiered library:
then link to your source code in this way,
use your real paths to ndisapi.lib,
try this, or in project settings add the library reference, is the same but in two diferent ways..