WinUser.h issue

Hello,

I'm trying to write a JNI code. The c++ code that has an include:

#include <winuser.h>

can not be compiled because this file does not exists on my computer, I did a search many times. My computer is Win XP, and .NET frame work as well as Visuall C++ is installed on my computer.

This include also appears in awt_robot.cpp in JDK source code. What am I missing?

any help is appreciated.

Regards.

[452 byte] By [sean1234a] at [2007-11-26 18:38:40]
# 1

> Hello,

>

> I'm trying to write a JNI code. The c++ code that has

> an include:

> > #include <winuser.h>

>

>

> can not be compiled because this file does not exists

> on my computer, I did a search many times. My

> computer is Win XP, and .NET frame work as well as

> Visuall C++ is installed on my computer.

>

> This include also appears in awt_robot.cpp in JDK

> source code. What am I missing?

>

> any help is appreciated.

>

> Regards.

WinUser.h should be in $VCInStallDir\VC\PlatformSDK\Include. Mine is in C:\Microsoft Visual Studio 8\VC\PlatformSDK\Include

kteegalaa at 2007-7-9 6:12:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
One other thing I can think of is that you don't have this particular directory in your include directories. Go to Projects And Solutions->VC++ directories and make sure '$(VCInstallDir)PlatformSDK\include' appears for include files
kteegalaa at 2007-7-9 6:12:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...