Need some answers
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Need some answers

  1. #1
    Join Date
    Oct 2008

    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);

    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?

    Last edited by bogdanul2003; October 9th, 2008 at 02:27 PM.

  2. #2
    Join Date
    Aug 2004

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)