Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-13 Thread Bo Berglund
On Thu, 14 Jul 2016 07:55:05 +0200, Sven Barth wrote: >Am 14.07.2016 07:08 schrieb "Bo Berglund" : >> >> I am porting a Delphi2007 utility from Windows to Linux (Raspbian >> Jessie). It uses a unit I have downloaded from the web, which was said >> to support FreePascal too. >> >> But now I am get

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-13 Thread Sven Barth
Am 14.07.2016 07:08 schrieb "Bo Berglund" : > > I am porting a Delphi2007 utility from Windows to Linux (Raspbian > Jessie). It uses a unit I have downloaded from the web, which was said > to support FreePascal too. > > But now I am getting a number of missing identifier errors as follows > Functio

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-13 Thread Graeme Geldenhuys
Sorry, ignore my last message. I see your issue is with RPi (Linux) and not the Windows platform. Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-13 Thread Graeme Geldenhuys
On 2016-07-14 06:08, Bo Berglund wrote: > uses > {$ifdef MSWINDOWS} > Windows, Try changing that to {$ifdef WINDOWS} instead. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp __

[fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-13 Thread Bo Berglund
I am porting a Delphi2007 utility from Windows to Linux (Raspbian Jessie). It uses a unit I have downloaded from the web, which was said to support FreePascal too. But now I am getting a number of missing identifier errors as follows Function calls: - SetFilePointer - GetFileTime - FileTimeToLocal

Re: [fpc-pascal] Is there a way to interact with this list via the Web?

2016-07-13 Thread leledumbo
> Is there a way to interact with this list via the Web? Alternatively (if you prefer forum-like interface): http://free-pascal-general.1045716.n5.nabble.com/ -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Is-there-a-way-to-interact-with-this-list-via-the-Web

Re: [fpc-pascal] Is there a way to interact with this list via the Web?

2016-07-13 Thread Vasudev Ram
Thank you. On 7/14/16, Jonas Maebe wrote: > Vasudev Ram wrote: >> Sorry, forgot to put the subject line earlier, so re-sending. >> >> On 7/14/16, Vasudev Ram wrote: >>> Hi list, >>> >>> Is there a way to interact with this list via the Web? > > http://blog.gmane.org/gmane.comp.compilers.free-pa

[fpc-pascal] Is there a way to interact with this list via the Web?

2016-07-13 Thread Vasudev Ram
Sorry, forgot to put the subject line earlier, so re-sending. On 7/14/16, Vasudev Ram wrote: > Hi list, > > Is there a way to interact with this list via the Web? > > By interact, I mean, both read and post messages. > > I have seen the main page for the list, where one can subscribe, etc. > and

[fpc-pascal] (no subject)

2016-07-13 Thread Vasudev Ram
Hi list, Is there a way to interact with this list via the Web? By interact, I mean, both read and post messages. I have seen the main page for the list, where one can subscribe, etc. and do know that there are archives. But archives are only for reading, and not in a convenient format like a NN

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Mark Morgan Lloyd
Tony Whyman wrote: What's interested me is how this thread has almost looped back to a recent thread on that steaming heap of brown stuff know as GTK and the attitude of the programmers behind it. It wasn't intentional :-) They make the point here that GTK is (too) complex and difficult to a

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Tony Whyman
What's interested me is how this thread has almost looped back to a recent thread on that steaming heap of brown stuff know as GTK and the attitude of the programmers behind it. I had a similar problem a few years ago whiich I wanted to solve by putting the passwords in an external file and us

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Mark Morgan Lloyd
Dennis Poon wrote: On the subject, can the OP simply use UPX to encrypt the executable binary. It won't be secured but no more unsecured than other simple solutions. I'm the nominal OP, but I raised the question in response to what an (ex-) Delphi programmer was asking elsewhere about obfus

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Santiago A.
El 12/07/2016 a las 21:39, Graeme Geldenhuys escribió: > No, but why the hell would you want to hard-code a password inside an > executable. Encrypt it externally and read it from a .INI file at > runtime (or prompt for a password). Even something as simple as > XorString() is better than nothing -

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Graeme Geldenhuys
On 2016-07-13 09:54, Dennis Poon wrote: > May I know what OnGuard is? It was originally TurboPower OnGuard, but then released as open source software. It allows you to license your software in many different ways. eg: x amount of days trial, lease your software for a year at a time, x amount of us

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Dennis Poon
Graeme Geldenhuys wrote: On 2016-07-13 08:31, Mark Morgan Lloyd wrote: Sometimes it's difficult to avoid having to do that sort of thing, or obfuscating them in an external file. You could use something like DCPCrypt to help the cause. Or you could follow similar tactics to what OnGuard uses

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Mark Morgan Lloyd
Lukasz Sokol wrote: On 13/07/16 08:31, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: On Tue, 12 Jul 2016, Mark Morgan Lloyd wrote: Please excuse one of my regular silly questions. Elsewhere, a (former) Delphi programmer is uneasy having found that his binaries have had embedded SQL que

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Graeme Geldenhuys
On 2016-07-13 08:31, Mark Morgan Lloyd wrote: > Sometimes it's difficult to avoid having to do that sort of thing, or > obfuscating them in an external file. You could use something like DCPCrypt to help the cause. Or you could follow similar tactics to what OnGuard uses - encode sensitive text i

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Graeme Geldenhuys
On 2016-07-13 08:28, Mark Morgan Lloyd wrote: > In that case "No, but why the hell would *one* want to hard-code a > password [...] storing it inside *one's* source code." The English language is perplexing (ie: “clear as dishwater”). There are a 1001 rules and exceptions to the rules. Both our s

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Lukasz Sokol
On 13/07/16 08:31, Mark Morgan Lloyd wrote: > Michael Van Canneyt wrote: >> On Tue, 12 Jul 2016, Mark Morgan Lloyd wrote: >> >>> Please excuse one of my regular silly questions. Elsewhere, a (former) >>> Delphi programmer is uneasy having found that his binaries have had >>> embedded SQL queries,

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: On Tue, 12 Jul 2016, Mark Morgan Lloyd wrote: Please excuse one of my regular silly questions. Elsewhere, a (former) Delphi programmer is uneasy having found that his binaries have had embedded SQL queries, passwords and so on visible "in clear" for the last 20 year

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-13 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 2016-07-12 21:09, Mark Morgan Lloyd wrote:> I didn't say /I/ was the one doing it. I know and I wasn’t implying you. It’s a figure of speech. In that case "No, but why the hell would *one* want to hard-code a password [...] storing it inside *one's* source code." :