<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/1832" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-11-04T12:06:42+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/1832</id>

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-11-04T12:06:42+02:00</updated>

		<published>2008-11-04T12:06:42+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6578#p6578</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6578#p6578"/>
		<title type="html"><![CDATA[HID_data example has a number of errors in windows]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6578#p6578"><![CDATA[
Regarding bzero: Seems to be a problem of header versions. My MinGW installation has it...<br /><br />Regarding -lusb: You need to install libusb-win32. This is a separate install not included with MinGW. The example demonstrates how to use direct (libusb based) access to HID devices.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Nov 04, 2008 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-28T01:34:41+02:00</updated>

		<published>2008-10-28T01:34:41+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6518#p6518</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6518#p6518"/>
		<title type="html"><![CDATA[HID_data example has a number of errors in windows]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6518#p6518"><![CDATA[
Yes it works great with libusb under both OSes.<br /><br />Im glad that it worked for you, then it is not a code problem. It could be that i have windows xp inside a virtual machine, but all other usb devices and libusb-win32 on the same OS works fine.<br /><br />Anyway, using libusb was much easier than the instructions listed on his webpage. I have only installed the filter driver and compiled with libusb (commented the windows api part) and it worked perfectly.<br /><br />Also i dont know if everybody thinks equal, but i find the windows api a total mess. I try to aboid it as much as i can.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Tue Oct 28, 2008 1:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bearing]]></name></author>
		<updated>2008-10-28T00:58:22+02:00</updated>

		<published>2008-10-28T00:58:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6517#p6517</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6517#p6517"/>
		<title type="html"><![CDATA[HID_data example has a number of errors in windows]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6517#p6517"><![CDATA[
Are you sure your hardware is working?<br /><br />I tried hidtool on Linux first. It worked after some general debugging, like moving the physical connector between USB-ports.<br /><br />After reading your first post I could compile it on Windows. hidtool.exe worked with my hardware right away.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1443">bearing</a> — Tue Oct 28, 2008 12:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-25T03:18:14+02:00</updated>

		<published>2008-10-25T03:18:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6493#p6493</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6493#p6493"/>
		<title type="html"><![CDATA[HID_data example has a number of errors in windows]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6493#p6493"><![CDATA[
After having compiled command-line tool in windows, it doesnt works.<br /><br />It just doesnt find the device and i dont know where else to try:<br /><br />checking HID path &quot;\\?\hid#vid_16c0&amp;pid_05df#6&amp;357e0f0f&amp;0&amp;0000#4d1e55b2-f16f-11<br />cf-88cb-001111000030}&quot;<br />opening failed: 5<br />error finding DataStore: The specified device was not found<br /><br /><br />But i tryed with libusb-win32 and it does works.<br /><br />This requires to only install the file libusb-win32-filter-.....exe<br /><br />And i edited the file hiddata.c replacing <br /><br />#if defined(WIN32)<br /><br />with this:<br /><br />#define LIBUSB<br />#if !defined(LIBUSB) &amp;&amp; defined(WIN32)<br /><br />This will let me choose if i want or not compile with libusb or the windows API.<br /><br /><br />Just to learn more, i would like to know what can the problem be with the windows API.<br />I am using WinXP with the free DDK provided by mingw.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Sat Oct 25, 2008 3:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-25T02:22:32+02:00</updated>

		<published>2008-10-25T02:22:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6492#p6492</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6492#p6492"/>
		<title type="html"><![CDATA[HID_data example has a number of errors in windows]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1832&amp;p=6492#p6492"><![CDATA[
Hi. I will just enumerate some errors that i had trying to compile it with mingw:<br /><br />I am using Codeblocks IDE which comes with mingw.<br /><br />--- cannot find -lusb<br />libusb.a doesnt exists (at least not in my instalation) but seams like the problem is solved by removing -lusb<br /><br />--- bzero is not defined (which should be in string.h)<br />From here : <!-- m --><a class="postlink" href="http://www.opengroup.org/onlinepubs/000095399/functions/bzero.html">http://www.opengroup.org/onlinepubs/000 ... bzero.html</a><!-- m --><br />The solution is to define this macro.<br />#define bzero(b,len) (memset((b), '\0', (len)), (void) 0)<br /><br />Hope it helps someone.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Sat Oct 25, 2008 2:22 am</p><hr />
]]></content>
	</entry>
	</feed>
