Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-08-02 Thread fredvs
> The check for the flag worked. Yes and many thanks for your clear demo program tmethodinfo. This removed all my doubts. > t's the remainder of the code that's broken. Yes and I did not find how to fix it in the main loop (and I am tired for this now). All the tests I did checking flag after

Re: [fpc-pascal] USB Human Interface Devices

2019-08-02 Thread Jean SUZINEAU
It seems that you can just remove {$LINKLIB c} in libusb.pas. The libusb from libusb.info cannot be used because the functions it provides are different, and if you try to recompile a version before 1.0 like 0.9.4, it fails because Windows

Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-08-02 Thread Sven Barth via fpc-pascal
fredvs schrieb am Fr., 2. Aug. 2019, 18:32: > > cause the type information is read only. > > Yes, it is why I will not jump into that proposition. > > > And if someone is not able to check for a simple flag then they shouldn't > > work with the RTTI. > > Huh, like in your code-fix? > > ;-) > >

Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-08-02 Thread fredvs
> cause the type information is read only. Yes, it is why I will not jump into that proposition. > And if someone is not able to check for a simple flag then they shouldn't > work with the RTTI. Huh, like in your code-fix? ;-) Ok, all is ok, many thanks Sven and have a perfect summer. Fre;D

Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-08-02 Thread Sven Barth via fpc-pascal
fredvs schrieb am Fr., 2. Aug. 2019, 15:11: > Hello Sven. > > > {$if declared(AlignTParamFlags)} > Excellent! > > If, by chance, you're running out of ideas for new methods for fpc 3.3.1 > trunk and have nothing to do or you're bored... > For people that are not fan of headaches (so not for me),

Re: [fpc-pascal] USB Human Interface Devices

2019-08-02 Thread Jean SUZINEAU
Here are a few links about msvcrt: https://support.microsoft.com/en-us/help/154753/description-of-the-default-c-and-c-libraries-that-a-program-will-link https://docs.microsoft.com/en-us/cpp/c-runtime-library/crt-library-features?view=vs-2019

Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-08-02 Thread fredvs
Hello Sven. > {$if declared(AlignTParamFlags)} Excellent! If, by chance, you're running out of ideas for new methods for fpc 3.3.1 trunk and have nothing to do or you're bored... For people that are not fan of headaches (so not for me), add this method: RemovepfHiddeninTParamFlags(Pparamlist).

Re: [fpc-pascal] USB Human Interface Devices

2019-08-02 Thread Jean SUZINEAU
@Johann: Is the Readme.rst at https://github.com/hansiglaser/pas-libusb up to date ? It states that only the legacy version 0.1 of libusb is supported, but the binary package for Windows on libusb.info is in version 1.0.22. You can get source code for old versions of libusb on github but it

Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-08-02 Thread Sven Barth via fpc-pascal
fredvs schrieb am Fr., 2. Aug. 2019, 13:27: > > No, It's > 030300, but your version of trunk is too old, the function > > was only added a few days ago. > > Ha, ok. (but a few tricky, a new number for a new feature would be ok too). > By definition only the latest version of trunk is considered

Re: [fpc-pascal] TParamFlags and fpc 3.2.0.

2019-08-02 Thread fredvs
> No, It's > 030300, but your version of trunk is too old, the function > was only added a few days ago. Ha, ok. (but a few tricky, a new number for a new feature would be ok too). Thanks Sven. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/