Link to home
Start Free TrialLog in
Avatar of Smilly
Smilly

asked on

DDK

I've just dwl Win98DDK, and installed it, but when I try it with VC++ 5.0, I get a hole lot of errors....What am I doing wrong???
I have included the setupx.lib, to my project, and the directories structure points to the DDK.

test.cpp
#include <setupx.h>

void main()
{
}

************COMPILE*********
--------------------Configuration: ddk - Win32 Debug--------------------
Compiling...
test.cpp
G:\98DDK\inc\win98\inc16\prsht.h(45) : error C2239: unexpected token '*' following declaration of 'FAR'
G:\98DDK\inc\win98\inc16\prsht.h(45) : error C2059: syntax error : '*'
G:\98DDK\inc\win98\inc16\prsht.h(47) : error C2371: 'FAR' : redefinition; different basic types
G:\98DDK\inc\win98\inc16\prsht.h(47) : error C2239: unexpected token '*' following declaration of 'FAR'
G:\98DDK\inc\win98\inc16\prsht.h(47) : error C2059: syntax error : '*'
G:\98DDK\inc\win98\inc16\prsht.h(53) : error C2065: 'CALLBACK' : undeclared identifier
G:\98DDK\inc\win98\inc16\prsht.h(53) : error C2146: syntax error : missing ')' before identifier 'FAR'
......

ddk.exe - 102 error(s), 0 warning(s)


Avatar of KangaRoo
KangaRoo

Try a
  #define FAR
at the top of the file.
that is, before the #include!
Avatar of Smilly

ASKER

Hi KangaRoo,
No that doesn't help, I still get 102 errors...

Smilly
ASKER CERTIFIED SOLUTION
Avatar of robert_marquardt
robert_marquardt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<blush>
Avatar of Smilly

ASKER

Okay, major error, Robert was right it's was that I had switch around the include path, so it took the msdk (windows.h) instead of msddk (windows.h).........Stupid....