Hi all,
I’m trying to write a user mode app that will use the SetupDi functions to
find the device handle to my HID device. except the problem I’m having is I
can’t get my program to link. It’s complaining about the call to
HidD_GetHidGuid() I tried telling to compiler to link to hid.lib,
hidclass.lib and hidparse.lib, none of which seem to resolve the issue… I
know my lib path is pointing to the DDK correctly because it will use the
setupapi.lib fine.
What am I doing wrong?
Thanks!
-Jeff
My psychic powers tell me that you are creating the application in C++
and that the linker is giving you a missing symbol of
_HidD_GetHidGUID@. You need to wrap the #include of
hidsdi.h in an extern “C”, ie
extern “C” {
#include “hidsdi.h”
}
Hid.lib is the lib you need to link against.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeff Lange
Sent: Wednesday, April 06, 2005 11:27 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] HIDClass Support Routines
Hi all,
I’m trying to write a user mode app that will use the SetupDi
functions to
find the device handle to my HID device. except the problem I’m having
is I
can’t get my program to link. It’s complaining about the call to
HidD_GetHidGuid() I tried telling to compiler to link to hid.lib,
hidclass.lib and hidparse.lib, none of which seem to resolve the issue…
I
know my lib path is pointing to the DDK correctly because it will use
the
setupapi.lib fine.
What am I doing wrong?
Thanks!
-Jeff
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Jeff Lange wrote:
I’m trying to write a user mode app that will use the SetupDi functions to
find the device handle to my HID device. except the problem I’m having is I
can’t get my program to link. It’s complaining about the call to
HidD_GetHidGuid() I tried telling to compiler to link to hid.lib,
hidclass.lib and hidparse.lib, none of which seem to resolve the issue… I
know my lib path is pointing to the DDK correctly because it will use the
setupapi.lib fine.
What am I doing wrong?
Is it a .cpp file? Have you wrapped the include to disable name decoration?
extern “C” {
#include <hidsdi.h>
}
Some of the DDK files have this built-in, but many do not. hidsdi.h
does not.
–
- Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.</hidsdi.h>
Doron,
I always knew you were a reliable source for kernel help… but your
psychic powers astound me =)
thanks!
-Jeff
“Doron Holan” wrote in message
news:xxxxx@ntdev…
My psychic powers tell me that you are creating the application in C++
and that the linker is giving you a missing symbol of
_HidD_GetHidGUID@. You need to wrap the #include of
hidsdi.h in an extern “C”, ie
extern “C” {
#include “hidsdi.h”
}
Hid.lib is the lib you need to link against.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeff Lange
Sent: Wednesday, April 06, 2005 11:27 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] HIDClass Support Routines
Hi all,
I’m trying to write a user mode app that will use the SetupDi
functions to
find the device handle to my HID device. except the problem I’m having
is I
can’t get my program to link. It’s complaining about the call to
HidD_GetHidGuid() I tried telling to compiler to link to hid.lib,
hidclass.lib and hidparse.lib, none of which seem to resolve the issue…
I
know my lib path is pointing to the DDK correctly because it will use
the
setupapi.lib fine.
What am I doing wrong?
Thanks!
-Jeff
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com