-
October 9th, 2008, 01:58 PM
#1
Need some answers
I'm trying to build an oscilloscope witch will communicate with the PC trough USB. Is it possible to make data exchange trough USB from user-space without writing drivers? (in windows XP)
I understood that to make things easier I have to make my oscilloscope a HID. If i'll do that i'll still have to write kernel code?
I'm trying to build the next code
#include "windows.h"
#include "setupapi.h"
#include "hidsdi.h"
void main()
{
GUID hidGUID;
HidD_GetHidGuid (&hidGUID);
return;
}
And it gives this error test.obj : error LNK2001: unresolved external symbol "void __stdcall HidD_GetHidGuid(struct _GUID *)" (?HidD_GetHidGuid@@YGXPAU_GUID@@@Z)
I'he included hid.lib and setuapi.h Are there othere libraries I should include to make this work?
10x
Last edited by bogdanul2003; October 9th, 2008 at 02:27 PM.
-
July 23rd, 2012, 08:38 AM
#2
Re: Need some answers
extern "C" //< -This will fix omission in the Win DDK header when compiled with C++ compiler
{
#include <inc/api/hidsdi.h> //DDK 6000
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|