[fpc-pascal] How to list USB devices on Windows?
I am writing a class that interfaces to a specific USB device HID type and I would like to list all such devices currently connected to the PC (usin Windows). On Linux I can do this on the command line: $ lsusb Bus 001 Device 004: ID 07f2:0003 Microcomputer Applications, Inc. Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub This gets me as the ID the vendorid:productid so I can scan for the interesting device type: $ lsusb | grep 07f2: Bus 001 Device 004: ID 07f2:0003 Microcomputer Applications, Inc. Is there some way I can do this on Windows so I can create a list of the device type I work with? Or is there an FPC command already? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Lazarus and Linked Lists
Dumb question, Is there a basic linked List object for Lazarus? Terry Haimann ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Format specifier in FPC?
Hi, I have the following format specifier in C : %+.05f. What would be the FPC equivalent? A float is printed like this: -0.70711 The specified '+' will explicitly print out the sign for the float independent if it is a positive or negative. Rgds, Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] how to get rid of hints
Am 25.06.2018 um 09:19 schrieb Mattias Gaertner: Hi, How to get rid of hint 6068? With fpc 3.1.1 using some units like fgl the compiler emits: .../fpc/rtl/objpas/fgl.pp(899,1) Hint: "inherited" not yet supported inside inline procedure/function .../fpc/rtl/objpas/fgl.pp(899,1) Hint: Inlining disabled There is no clue, what of my code triggers it. How to get rid of the hint? Put #ifndef VER3_0 -vm6068 #endif into your fpc.cfg. I can't use -vm6068, because that is not supported by older fpc. Also shutting down down an otherwise useful hint entirely is not my favored thing to do. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] macos make 3.1.1 fails
On Tue, 26 Jun 2018 09:07:00 +0100 C Western wrote: >[...] > Carbon is i386 only, so i386 is still needed. I haven't figured out all > the options, but the command line that works for me is: > > FPC=/usr/local/lib/fpc/3.0.4/ppc386 make distclean install PREFIX=~/usr > CPU_SOURCE=i386 > > (All on one line) Note the specification of CPU_SOURCE Yes! CPU_SOURCE it is. This works here: make clean all CPU_SOURCE=i386 I can't find that in the buildfaq. Only in some forum entries. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] macos make 3.1.1 fails
On 26/06/18 03:35, Anthony Walter wrote: I don't believe i386 is supported by the newer OSX dev tools. Use x86_64 instead. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal Carbon is i386 only, so i386 is still needed. I haven't figured out all the options, but the command line that works for me is: FPC=/usr/local/lib/fpc/3.0.4/ppc386 make distclean install PREFIX=~/usr CPU_SOURCE=i386 (All on one line) Note the specification of CPU_SOURCE Colin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal