Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-10-01 Thread Johann Glaser
Hi! Am Sonntag, den 30.09.2012, 22:57 +0200 schrieb Christo: > On Tue, 2012-09-25 at 22:32 +0200, Johann Glaser wrote: > > > I only have access to Linux and don't know anything about Windows > > development. So, I ask you (and anybody else) on the best and cleanest > > way to make libusb.pas work

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-30 Thread Johann Glaser
Hi! Am Mittwoch, den 26.09.2012, 08:56 +0200 schrieb Sven Barth: > Am 25.09.2012 23:16, schrieb Henry Vermaak: > > On 25 September 2012 20:57, Christo wrote: > >> Any ideas on how to define the calling convention in the import unit so > >> that it is either stdcall or cdecl depending on the targe

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-28 Thread Christo
On Tue, 2012-09-25 at 22:16 +0100, Henry Vermaak wrote: > On 25 September 2012 20:57, Christo wrote: > > Any ideas on how to define the calling convention in the import unit so > > that it is either stdcall or cdecl depending on the target OS? > > I've used a macro for this in the past. E.g. : >

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Sven Barth
Am 25.09.2012 23:16, schrieb Henry Vermaak: On 25 September 2012 20:57, Christo wrote: Any ideas on how to define the calling convention in the import unit so that it is either stdcall or cdecl depending on the target OS? I've used a macro for this in the past. E.g. : {$macro on} {$ifdef wi

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Henry Vermaak
On 25 September 2012 20:57, Christo wrote: > Any ideas on how to define the calling convention in the import unit so > that it is either stdcall or cdecl depending on the target OS? I've used a macro for this in the past. E.g. : {$macro on} {$ifdef windows} {$define CCONV:=stdcall} {$else}

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Johann Glaser
Hi! Am Dienstag, den 25.09.2012, 21:57 +0200 schrieb Christo: > On Sun, 2012-09-23 at 23:26 +0200, Johann Glaser wrote: > > Hi! > > > > Some time ago somebody asked about USB support. I've now finished the > > libusb 1.0 header translation and object-oriented wrapper. > > Hi Hansi, > > I see th

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Christo
On Sun, 2012-09-23 at 23:26 +0200, Johann Glaser wrote: > Hi! > > Some time ago somebody asked about USB support. I've now finished the > libusb 1.0 header translation and object-oriented wrapper. Hi Hansi, I see that the imported functions in libusb.pas are declared with the cdecl calling conve

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Christo
On Tue, 2012-09-25 at 09:41 +0100, Graeme Geldenhuys wrote: > then do... > > cd pas-libusb > git checkout libusb-1.0 Thanks Graeme (and Henry). Obviously I'm new to git and tried commands similar to svn which didn't work quite as expected. Regards, Christo _

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Jonas Maebe
On 25 Sep 2012, at 20:15, Bernd wrote: > I know that git is not as complicated Please move this discussion to fpc-other, thanks. Jonas FPC mailing lists admin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mai

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Bernd
2012/9/25 Graeme Geldenhuys : > Thanks for the tip, but Git is *not* difficult to use. To cover the average > developer workflow, you need like 3-4 commands max. If you can't remember 4 > commands, then you have bigger issues than git. I know that git is not as complicated as it initially seems b

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Graeme Geldenhuys
On 2012-09-25 17:22, Bernd wrote: I highly recommend using the easygit wrapper to make life easier, especially when you come from SVN because git will be very confusing Thanks for the tip, but Git is *not* difficult to use. To cover the average developer workflow, you need like 3-4 commands

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Bernd
2012/9/24 Christo : > I'm new to using git so it may be > something trivial I'm missing. Regarding git, I highly recommend using the easygit wrapper to make life easier, especially when you come from SVN because git will be very confusing in the beginning if you are used to svn and then try to u

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Johann Glaser
Hi! Am Dienstag, den 25.09.2012, 09:41 +0100 schrieb Graeme Geldenhuys: > On 2012-09-24 14:39, Christo wrote: > > I'm interested in testing your wrapper. Unfortunately I cannot clone > > the git link above, I get an error (fatal: > > https://github.com/hansiglaser/pas-libusb/tree/libusb-1.0/info/

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-25 Thread Graeme Geldenhuys
On 2012-09-24 14:39, Christo wrote: I'm interested in testing your wrapper. Unfortunately I cannot clone the git link above, I get an error (fatal: https://github.com/hansiglaser/pas-libusb/tree/libusb-1.0/info/refs not That was a web link, not the git url. If you followed that link with you

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-24 Thread Henry Vermaak
On 24 September 2012 14:39, Christo wrote: > Unfortunately the master branch appears to be 2 months old. Any idea how > I can clone the libusb-1.0 branch? I'm new to using git so it may be > something trivial I'm missing. Try to clone git://github.com/hansiglaser/pas-libusb.git Then you can che

Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-24 Thread Christo
On Sun, 2012-09-23 at 23:26 +0200, Johann Glaser wrote: > Hi! > > Some time ago somebody asked about USB support. I've now finished the > libusb 1.0 header translation and object-oriented wrapper. > > Please find them at > https://github.com/hansiglaser/pas-libusb/tree/libusb-1.0 > including a

[fpc-pascal] libusb header translation and OOP wrapper

2012-09-23 Thread Johann Glaser
Hi! Some time ago somebody asked about USB support. I've now finished the libusb 1.0 header translation and object-oriented wrapper. Please find them at https://github.com/hansiglaser/pas-libusb/tree/libusb-1.0 including a few examples to demonstrate the usage. I've updated http://wiki.lazarus