Am 19.05.2017 14:53 schrieb "Lukasz Sokol" <el.es...@gmail.com>:
>
> On 19/05/17 13:33, Sven Barth via fpc-pascal wrote:
>
> >>> You don't have to build a 32-bit FPC because an official
> >>> released installer exists. So this is no problem at all. But
> >>> seeing as pretty much everything is moving (or already has moved)
> >>> to 64-bit, why bother with 32-bit these days. [referring to
> >>> desktop and server applications - not embedded devices]
> >>>
> >>
> >> Is there a way for native 64bit application to load a 32bit
> >> library, that then can talk to a 32bit USB driver ? (on Windows)
> >
> > Drivers (at least kernel mode drivers) must be 64-bit on 64-bit
> > Windows (and also basically every other system I'm aware of). However
> > it's perfectly possible to talk with a 64-bit driver from a 32-bit
> > application. And no, you can't load a 32-library from a 64-bit
> > process.
>
> This one is not a kernel-mode (at least so I think because the same
> installation succeeds both on 32bit XPSP3, and in recent Win10 64bit)...
>
> (it's the old old Microchip MCHPFUSB driver used e.g. with PIC18F4550,
driver version 1.3;
>  it's probably not as much a 'driver' as a way to register the PID and
VID with the system,
>  more or less; but the library interfacing it, is 32bit only)

>From what I can see from their site version 1.3 is the first that supports
64-bit and it indeed includes a 64-bit driver (and a 32-bit one as well).
Also if I understand that correctly the source and API information to
access the driver is provided as well, so you could either compile the
library for 64-bit or port it to FPC to solve this.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to