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

2019-07-27 Thread fredvs
Hello. Sorry, I am not the skill to find the problem with your code. I did try but I loose. So, I still followed your advices to remove all pfHidden stuff. It is done at end of the procedure, updating the "info" variable. Here code fully working. You may take a look at end of code:

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

2019-07-27 Thread fredvs
> That's what I meant in the mail you replied t Yes, sorry, when I sent it, you just post yours before I read t. > So it definitely works Good news. > now you only need to figure out the problem in your code. Huh, it comes from your code. Thanks Sven. Fre;D - Many thanks ;-) --

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

2019-07-27 Thread Sven Barth via fpc-pascal
Am 27.07.2019 um 19:02 schrieb fredvs: Imho, it seems that in your code "if not (pfHidden in flags) then" was placed one "end;" too far. That's what I meant in the mail you replied to. Am 27.07.2019 um 19:07 schrieb fredvs: Sven, did you try a simple code, it seems that "$self" first

Re: [fpc-pascal] USB Human Interface Devices

2019-07-27 Thread Johann Glaser
Hi! Am Samstag, den 27.07.2019, 14:27 +0200 schrieb Marc Santhoff: > On Fri, 2019-07-26 at 22:37 +0200, Johann Glaser wrote: > > Hi! > > > > Am Freitag, den 26.07.2019, 15:56 +0200 schrieb Marc Santhoff: > > > On Thu, 2019-07-25 at 19:40 -0700, Brian wrote: > > > > Try the libusb library Free

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

2019-07-27 Thread fredvs
Sven, did you try a simple code, it seems that "$self" first parameter is always added into params list, even if you filter it with "pfHidden" flag. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___

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

2019-07-27 Thread fredvs
Re-hello. Imho, it seems that in your code "if not (pfHidden in flags) then" was placed one "end;" too far. So trying with this code, compilation is ok: ... procedure getmethodparaminfo(const atype: ptypeinfo; var info: methodparaminfoty);

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

2019-07-27 Thread Sven Barth via fpc-pascal
fredvs schrieb am Sa., 27. Juli 2019, 17:54: > Hello Sven. > > > That said the code I showed you had an issue which might explain the > > behaviour you got: > > I did try your new code but get that error message at compilation: > > msedesignparser.pas(722,11) Error: Incompatible types: got

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

2019-07-27 Thread fredvs
Hello Sven. > That said the code I showed you had an issue which might explain the > behaviour you got: I did try your new code but get that error message at compilation: msedesignparser.pas(722,11) Error: Incompatible types: got "TParamFlag" expected "methodflagty" msedesignparser.pas(2238)

Re: [fpc-pascal] USB Human Interface Devices

2019-07-27 Thread Marc Santhoff
On Fri, 2019-07-26 at 22:37 +0200, Johann Glaser wrote: > Hi! > > Am Freitag, den 26.07.2019, 15:56 +0200 schrieb Marc Santhoff: > > On Thu, 2019-07-25 at 19:40 -0700, Brian wrote: > > > Try the libusb library Free Pascal interface .. but be aware of his > > > license > > > requirements. It works