From: DPM on
We're trying to write an app that will use the WinUSB driver for a USB
device, but we're getting the following error in usb.h:

c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : error C2146: syntax
error : missing ';' before identifier 'PIRP'
c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : fatal error C1004:
unexpected end of file found

We're using usb.h from WDK_6000.16386.061101-2205.

Does anyone have any suggestions? Is there another usb.h we should be
using?

Thanks for your help.
--
Regards,
Dean


From: Doron Holan [MSFT] on
you do not need usb.h. you probably want usbuser.h

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"DPM" <dm(a)junk.com> wrote in message
news:O%23VQYR%23mIHA.4140(a)TK2MSFTNGP04.phx.gbl...
> We're trying to write an app that will use the WinUSB driver for a USB
> device, but we're getting the following error in usb.h:
>
> c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : error C2146: syntax
> error : missing ';' before identifier 'PIRP'
> c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : fatal error C1004:
> unexpected end of file found
>
> We're using usb.h from WDK_6000.16386.061101-2205.
>
> Does anyone have any suggestions? Is there another usb.h we should be
> using?
>
> Thanks for your help.
> --
> Regards,
> Dean
>
>

From: DPM on
That's interesting - usb.h is included in winusbio.h which is in turn
included in winusb.h, which I thought was mandatory.

Should I modify winusbio.h? Sounds risky to start modifying these files
unless I know why.

Thanks,
Dean

"Doron Holan [MSFT]" <doronh(a)online.microsoft.com> wrote in message
news:%23de53nAnIHA.4712(a)TK2MSFTNGP04.phx.gbl...
> you do not need usb.h. you probably want usbuser.h
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "DPM" <dm(a)junk.com> wrote in message
> news:O%23VQYR%23mIHA.4140(a)TK2MSFTNGP04.phx.gbl...
>> We're trying to write an app that will use the WinUSB driver for a USB
>> device, but we're getting the following error in usb.h:
>>
>> c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : error C2146: syntax
>> error : missing ';' before identifier 'PIRP'
>> c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : fatal error C1004:
>> unexpected end of file found
>>
>> We're using usb.h from WDK_6000.16386.061101-2205.
>>
>> Does anyone have any suggestions? Is there another usb.h we should be
>> using?
>>
>> Thanks for your help.
>> --
>> Regards,
>> Dean
>>
>>
>


From: Doron Holan [MSFT] on
why do you have your own copy of usb.h instead of using the one in the wdk?

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"DPM" <dm(a)junk.com> wrote in message
news:Ofyvz8AnIHA.5300(a)TK2MSFTNGP05.phx.gbl...
> That's interesting - usb.h is included in winusbio.h which is in turn
> included in winusb.h, which I thought was mandatory.
>
> Should I modify winusbio.h? Sounds risky to start modifying these files
> unless I know why.
>
> Thanks,
> Dean
>
> "Doron Holan [MSFT]" <doronh(a)online.microsoft.com> wrote in message
> news:%23de53nAnIHA.4712(a)TK2MSFTNGP04.phx.gbl...
>> you do not need usb.h. you probably want usbuser.h
>>
>> d
>>
>> --
>> Please do not send e-mail directly to this alias. this alias is for
>> newsgroup purposes only.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>>
>> "DPM" <dm(a)junk.com> wrote in message
>> news:O%23VQYR%23mIHA.4140(a)TK2MSFTNGP04.phx.gbl...
>>> We're trying to write an app that will use the WinUSB driver for a USB
>>> device, but we're getting the following error in usb.h:
>>>
>>> c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : error C2146:
>>> syntax error : missing ';' before identifier 'PIRP'
>>> c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : fatal error C1004:
>>> unexpected end of file found
>>>
>>> We're using usb.h from WDK_6000.16386.061101-2205.
>>>
>>> Does anyone have any suggestions? Is there another usb.h we should be
>>> using?
>>>
>>> Thanks for your help.
>>> --
>>> Regards,
>>> Dean
>>>
>>>
>>
>
>

From: DPM on
Doron,

I don't have my own copy. In my original post I said "We're using usb.h
from WDK_6000.16386.061101-2205".

That's what's frustrating - we're using files from the WDK and they're
throwing errors we don't understand.

BTW, we're using VS6 to build this - is that the wrong development platform?
If so, what should we use instead?

Thanks,
Dean

"Doron Holan [MSFT]" <doronh(a)online.microsoft.com> wrote in message
news:uncc4hCnIHA.4536(a)TK2MSFTNGP06.phx.gbl...
> why do you have your own copy of usb.h instead of using the one in the
> wdk?
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "DPM" <dm(a)junk.com> wrote in message
> news:Ofyvz8AnIHA.5300(a)TK2MSFTNGP05.phx.gbl...
>> That's interesting - usb.h is included in winusbio.h which is in turn
>> included in winusb.h, which I thought was mandatory.
>>
>> Should I modify winusbio.h? Sounds risky to start modifying these files
>> unless I know why.
>>
>> Thanks,
>> Dean
>>
>> "Doron Holan [MSFT]" <doronh(a)online.microsoft.com> wrote in message
>> news:%23de53nAnIHA.4712(a)TK2MSFTNGP04.phx.gbl...
>>> you do not need usb.h. you probably want usbuser.h
>>>
>>> d
>>>
>>> --
>>> Please do not send e-mail directly to this alias. this alias is for
>>> newsgroup purposes only.
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
>>>
>>>
>>> "DPM" <dm(a)junk.com> wrote in message
>>> news:O%23VQYR%23mIHA.4140(a)TK2MSFTNGP04.phx.gbl...
>>>> We're trying to write an app that will use the WinUSB driver for a USB
>>>> device, but we're getting the following error in usb.h:
>>>>
>>>> c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : error C2146:
>>>> syntax error : missing ';' before identifier 'PIRP'
>>>> c:\pp linkpoint fd10c usb\winusb\fd10capi\usb.h(41) : fatal error
>>>> C1004: unexpected end of file found
>>>>
>>>> We're using usb.h from WDK_6000.16386.061101-2205.
>>>>
>>>> Does anyone have any suggestions? Is there another usb.h we should be
>>>> using?
>>>>
>>>> Thanks for your help.
>>>> --
>>>> Regards,
>>>> Dean
>>>>
>>>>
>>>
>>
>>
>