• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 553
  • Last Modified:

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)


0
Smilly
Asked:
Smilly
  • 3
  • 2
1 Solution
 
KangaRooCommented:
Try a
  #define FAR
at the top of the file.
0
 
KangaRooCommented:
that is, before the #include!
0
 
SmillyAuthor Commented:
Hi KangaRoo,
No that doesn't help, I still get 102 errors...

Smilly
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
robert_marquardtCommented:
Try including <windows.h>
0
 
KangaRooCommented:
<blush>
0
 
SmillyAuthor Commented:
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....

0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now