Re: [fpc-pascal] GetAppConfigDir(False) in a Citrix environment

2018-06-27 Thread Michael Van Canneyt
On Thu, 28 Jun 2018, Bart wrote: Hi, One of my apps also runs in a Citrix environment. It does not retrieve it's settings. If appears that GetAppConfigDir(False) returns "C:\Users\\AppData\Local". (%LOCALAPPDATA%=C:\Users\902617\AppData\Local) Whereas %APPDATA% points to "\\prof001\profiles\

[fpc-pascal] GetAppConfigDir(False) in a Citrix environment

2018-06-27 Thread Bart
Hi, One of my apps also runs in a Citrix environment. It does not retrieve it's settings. If appears that GetAppConfigDir(False) returns "C:\Users\\AppData\Local". (%LOCALAPPDATA%=C:\Users\902617\AppData\Local) Whereas %APPDATA% points to "\\prof001\profiles\\AppData", and this is also the locati

Re: [fpc-pascal] How to list USB devices on Windows?

2018-06-27 Thread Marc Santhoff
On Wed, 2018-06-27 at 07:32 +0200, Bo Berglund wrote: > 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). > [...] > Is there some way I can do this on Windows so I can create a list of

Re: [fpc-pascal] Format specifier in FPC?

2018-06-27 Thread Darius Blaszyk
Thanks Michael! I made a custom function that adds the + in case of a positive value. Rgds ,Darius On Wed, Jun 27, 2018 at 9:02 AM Michael Van Canneyt wrote: > > > On Wed, 27 Jun 2018, Darius Blaszyk wrote: > > > Hi, > > > > I have the following format specifier in C : %+.05f. What would be the

Re: [fpc-pascal] Format specifier in FPC?

2018-06-27 Thread Michael Van Canneyt
On Wed, 27 Jun 2018, Darius Blaszyk wrote: 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. It s