I am new at using Visual c++ and I cannot figure out this problem. I am trying to use two microsoft DDK libraries, one is newdev.lib and one is setupapi.lib. I have copied the four files (newdev.h,newdev.lib,setupapi.h,setupapi.lib) into the same directory as my main class (this is a console application). I added the following lines to my stdafx.h file:
when I build I get syntax errors such as
"c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\newdev.h(29): error C2146: syntax error : missing ';' before identifier 'WINAPI'"
in the newdev.h, setupapi.h, and some other header files. There are about 26 errors in all.
These are files supplied by microsoft, why am I getting syntax errors?
Code:
#include <newdev.h>
#include <setupapi.h>
"c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\newdev.h(29): error C2146: syntax error : missing ';' before identifier 'WINAPI'"
in the newdev.h, setupapi.h, and some other header files. There are about 26 errors in all.
These are files supplied by microsoft, why am I getting syntax errors?