Re: [DUG] DLL loading slowed by anti-virus

2015-09-21 Thread Jolyon Direnko-Smith
Hi Ross, Rather than have an application load 30 DLLS (none of which it uses) for the sake of another application which might use as few as just 2 of those 30 and only ever one at a time, why not simply cache each loaded DLL in the application that is actually using them ? I would hope that your

Re: [DUG] DLL loading slowed by anti-virus

2015-09-21 Thread Jolyon Direnko-Smith
: > You mean leave the DLL loaded permanently and switch to it when required? > I thought of that but the code is quite tricky as it is in that app. I was > hoping to not modify that app and just load the DLL’s in another one. I > take it my original plan would work? > > > &

Re: [DUG] Android Studio

2015-10-14 Thread Jolyon Direnko-Smith
Admittedly I only use Android Studio for the visual layout designer (via the integration with Elements and Visual Studio), but I do know there is a library of Android code samples (in the form of complete apps) on github with access baked into Android Studio itself. Use the "Import Sample" option

Re: [DUG] Assigned image to SpeedButton not transparent

2015-10-29 Thread Jolyon Direnko-Smith
Retrieving the bitmap from an image list in the way that you are should preserve transparency, if the transparency is correctly set in the image list itself. However, assigning a bitmap to the Glyph property in this way invokes a behaviour in the Speedbutton class which may be interfering with thi

Re: [DUG] Software and how to go forward

2015-12-02 Thread Jolyon Direnko-Smith
Hi Wallace, First I find it interesting that a PDF is filled in but then posted. Did you mean emailed ? Or is there a paper form involved ? If it's a paper form then some sort of OCR solution might be feasible; if it's an emailed PDF form then if it is an actual "form" then there is presumably

Re: [DUG] Touch in Delphi XE2

2015-12-13 Thread Jolyon Direnko-Smith
Have you tweaked the Windows settings to ensure the popup keyboard is as enthusiastic as possible w.r.t desktop/windowed applications ? http://winsupersite.com/windows-10/how-improve-windows-10s-onscreen-keyboard-desktop-apps On 14 December 2015 at 11:45, Robert Martin wrote: > Hi All > > I hav

Re: [DUG] Resource compiler

2015-12-20 Thread Jolyon Direnko-Smith
You could use http://melander.dk/reseditor/ Or you can use any tool capable of creating/editing ICO files and simply write a resource script (*.rc) to incorporate the icons into a *.res file as required. Delphi will compile the *.rc file for you though I don't recall off-hand whether you declare

Re: [DUG] Resource compiler

2015-12-20 Thread Jolyon Direnko-Smith
Oops, download links on that page for reseditor appear not to go anywhere anymore. :( On 21 December 2015 at 17:29, Jolyon Direnko-Smith wrote: > You could use http://melander.dk/reseditor/ > > Or you can use any tool capable of creating/editing ICO files and simply > write a res

Re: [DUG] [computing] 16 bit compiler and Ancient Mariners

2016-02-24 Thread Jolyon Direnko-Smith
As a matter of historical curiosity, Delphi 1 was the first AND last version to support 16-bit targets. Delphi 2 included Delphi 1 in the box for people that still needed 16-bit support but otherwise it was 32-bit all the way from Delphi 2 onward. There is no direct Sleep() equivalent in 16-bit a

Re: [DUG] [computing] 16 bit compiler and Ancient Mariners

2016-02-25 Thread Jolyon Direnko-Smith
eat the CPU then I don’t need to look further > > > > *From:* Jolyon Direnko-Smith > *Sent:* Thursday, February 25, 2016 7:19 PM > *To:* NZ Borland Developers Group - Delphi List > > *Subject:* Re: [DUG] [computing] 16 bit compiler and Ancient Mariners > > As a

Re: [DUG] Stange window pops up after conversion

2016-03-08 Thread Jolyon Direnko-Smith
No answers (yet at least), but some questions that might help get you a closer to an answer What exactly do you mean by a "command window" ? What does it look like ? What does it do while running ? How can you interact with it (if at all) ? Also, what do you mean by "in debug mode" ? Does

Re: [DUG] Delphi GIT Integration

2016-04-10 Thread Jolyon Direnko-Smith
I have to say that rather than these being problems intrinsic to Git w.r.t small teams, it sounds like you moved to Git without fully adapting your workflow. It is all too easy to fall into the trap of regarding Git as an alternative to SVN, but distributed version control is a wholly different co

Re: [DUG] Seattle questions

2016-04-11 Thread Jolyon Direnko-Smith
Um, John Delphi has had zero terminated strings since Delphi 2 and still does. They are zero-terminated AND they have a payload descriptor which specifies the length. This can actually lead to problems when a string is both terminated by a zero but also ends up CONTAINING a zero (i.e. an addi

Re: [DUG] Seattle questions

2016-04-11 Thread Jolyon Direnko-Smith
> them used to Delphi, new young Delphi programmers, as well as > C/C#/Java/Python/PHP/Ruby which most of them are working with – after all > it was designed for that - as a teaching language. > > 2 – Some way of running Delphi programs in a browser – in a way its the > last major OS they

Re: [DUG] Seattle questions

2016-04-11 Thread Jolyon Direnko-Smith
@Leigh / Steve, The idea of Microsoft buying Delphi has come up numerous times over the years. I don't remember any hangings. :) There was a time when it might have made sense in terms of plugging a "native code gap". But that was when Microsoft was "betting the farm" on managed .NET and had

Re: [DUG] Sending SMSs

2016-05-02 Thread Jolyon Direnko-Smith
Leigh, it's not as if the telco's haven't thought that people might try this, but if you do you are will be in breach of the terms of use of those services and will likely face higher costs than using the appropriate services for those purposes. On 2 May 2016 at 19:09, Leigh Wanstead wrote: >

Re: [DUG] Sending SMSs

2016-05-02 Thread Jolyon Direnko-Smith
@David - In the case of Vodafone it's not even a question of "fair use". The standard terms covering Unlimited TXT services on Vodafone specifically and explicitly prohibit application-to-person messaging (among other things). You would be in breach as soon as you send just 1 TXT of that sort, nev

Re: [DUG] In [set] efficiency

2016-06-08 Thread Jolyon Direnko-Smith
There's two "optimizations" in play... code efficiency and code clarity/redundancy/duplication. if RadioButton.ItemIndex in [3, 5] then vs if (RadioButton.ItemIndex = 3) or (RadioButton.ItemIndex = 5) then The former may be more performant but the more significant factor in play for me he

Re: [DUG] In [set] efficiency

2016-07-27 Thread Jolyon Direnko-Smith
Rohit, I'm not sure when you think this change occurred but as far as I can recall (and I've just tested that memory with Delphi 7) it has never been possible to have duplicate case labels. If it were, I'm pretty sure it would have been considered a bug and would have been fixed as such. My C is t

Re: [DUG] Open new email in default browser

2016-07-27 Thread Jolyon Direnko-Smith
The mailto URI scheme does not support attachments. https://tools.ietf.org/html/rfc6068 Specific email clients may provide extensions to the URI scheme that allow that email client to support attachments via a mailto: URI but by definition these extensions will not be universally supported and so

Re: [DUG] Open new email in default browser

2016-07-27 Thread Jolyon Direnko-Smith
On 28 July 2016 at 15:58, Jolyon Direnko-Smith wrote: > The mailto URI scheme does not support attachments. > > https://tools.ietf.org/html/rfc6068 > > Specific email clients may provide extensions to the URI scheme that allow > that email client to support attachments v

Re: [DUG] Open new email in default browser

2016-07-27 Thread Jolyon Direnko-Smith
> Showmessage('There were too many recipients; no message was sent.'); > MAPI_E_UNKNOWN_RECIPIENT: >Showmessage('A recipient did not appear in the address list; no > message was sent.'); > MAPI_E_USER_ABORT: >Showmessage('T

Re: [DUG] Multi client website

2016-08-01 Thread Jolyon Direnko-Smith
@Leigh et al re ASP.NET and Linux These days of course there is also .net Core and ASP.net Core with MVC and EF and all that "lovely stuff" (ymmv) without needing Windows or IIS. On 2 August 2016 at 03:42, Stefan Mueller wrote: > >>I'm writing this in PHP5. > > Fair enough, I guess I’ll be stop

Re: [DUG] TChromium

2016-08-01 Thread Jolyon Direnko-Smith
Any particular reason you are using a web browser to host the Adobe Plugin to host Adobe Reader to display a PDF file, rather than using the Adobe Reader ActiveX control (or some other native Delphi PDF component) directly ? On 2 August 2016 at 07:54, Jeremy Coulter wrote: > Out of curiosity, wh

Re: [DUG] Help - Mime64 insanity !

2016-08-08 Thread Jolyon Direnko-Smith
First off, EncodeStream() is a class method so there's no need to create an instance to call it. Second, by default a TStringList with include a BOM on any encoded output file. I suspect this is the source of your illegal characters. A simple diff of two files output via each mechanism should co

Re: [DUG] Help - Mime64 insanity !

2016-08-09 Thread Jolyon Direnko-Smith
@Todd - looking at the code I suspect that the stringlist is in there as a temporary facility to dump the encoded data to a file for inspection/diagnostics (the function returns the encoded string as it's result as well as writing it out to a file using a string list for convenience). I think in t

Re: [DUG] Help - Mime64 insanity !

2016-08-09 Thread Jolyon Direnko-Smith
, but imho that would be overkill for a quick diagnostic facility. :) On 10 August 2016 at 09:31, Todd Martin wrote: > @Jolyon > The memory steam could have been simply copied to a TFilestream for that. > > Todd > > On 10 Aug 2016 8:38 a.m., "Jolyon Direnko-Smith"

Re: [DUG] Anti-virus software

2016-08-23 Thread Jolyon Direnko-Smith
The only times I have ever been affected by virus was when I was using anti-virus software and was also having to put up with impacted system performance, false positives and constant nagging to keep my AV definitions up to date etc etc I ditched AV software* and haven't suffered a virus, malware,

Re: [DUG] Procedure run from main program

2016-10-11 Thread Jolyon Direnko-Smith
To all of the implementation tips/observations aside, I would add the following: Any scaling based on simply modifying current values and using floating point and rounding is going to suffer from asymmetry and creeping rounding issues if forms are frequently scaled and rescaled. Asymmetry I mean

Re: [DUG] Testing internet web site connections

2016-10-12 Thread Jolyon Direnko-Smith
I'm not normally a fan of Microsoft, but it has to be said that if your web sites are hosted in Azure then you get more alerts and monitoring capabilities than you can shake a stick at. They won't just tell you whether your site is up, down or sideways but can also notify you when it is responding

Re: [DUG] Strings Question

2016-11-15 Thread Jolyon Direnko-Smith
Just one correction: Array of Char = Array of AnsiChar One other thing to watch out for is if you have methods which accept strings as untyped buffers. Passing a "String" to these methods will not convert them to ANSIString, so the method receives a buffer of WIDEChars. Also watch out for TStrin

Re: [DUG] Are these good ideas?

2016-11-15 Thread Jolyon Direnko-Smith
If by your "code that is working" (vs code that isn't) refers to the two different methods being used to produce an MD5 Hash, then I think there is a bit of confusion about the problem (hard to say without actual code). i.e. it is possible that *both* of your MD5 implementations are working absolu

Re: [DUG] Timezones for Bills and things

2016-11-24 Thread Jolyon Direnko-Smith
It varies according to the _file_system_, not the edition/version of Windows: For NTFS volumes, file timestamps are stored in UTC For FAT volumes (incl. FAT32, extFAT etc) file timestamps are stored in local time. https://msdn.microsoft.com/en-us/library/windows/desktop/ms724290(v=vs.85).aspx Bu

Re: [DUG] Windows Surface

2016-12-13 Thread Jolyon Direnko-Smith
Completely off topic but... I got a 1st Gen Surface RT when Microsoft sold off their tax write off stock. I picked up a 64GB model with touch typing cover for $273 (NZ) delivered! I got it just to play with/as a devtest rig, but quickly came to love it. They were a huge missed opportunity ... f

Re: [DUG] Off topic but...

2017-01-15 Thread Jolyon Direnko-Smith
IANAL but I would say that unless your terms of sale include an explicit reservation to refuse to provide a license in exchange for the advertised price then you would need to be able to provide a substantive and legitimate reason to refuse. The fact that you have already sold them a license and n

Re: [DUG] Off topic but...

2017-01-15 Thread Jolyon Direnko-Smith
e license to cover additional support costs for > the user in question. I am guessing they are a difficult customer, you > could encourage them to make the decision themselves :) > > Cheers > Rob > > > > On 16/01/2017 9:44 AM, Jolyon Direnko-Smith wrote: > > IANAL b

Re: [DUG] Off topic but...

2017-01-15 Thread Jolyon Direnko-Smith
her product...or something like that > so that it becomes THEIR decision etc. > > I could just shut down the company and create a new one...hehehehe > > Jeremy > > On Mon, Jan 16, 2017 at 10:11 AM, Jolyon Direnko-Smith < > jsm...@deltics.co.nz> wrote: > >>

Re: [DUG] Downloading latest Berlin

2017-01-16 Thread Jolyon Direnko-Smith
If your subscription "includes support", can you not get the required support from Embarcadero ? ;) In this case tho the answer is actually in the release notes: http://docwiki.embarcadero.com/RADStudio/Berlin/en/Subscription_Update_2_-_Anniversary_Edition To save you digging through, the answ

Re: [DUG] A better way of checking if duplicate exists

2017-03-05 Thread Jolyon Direnko-Smith
The pattern for this is usually something along the lines of: DisableControls Get bookmark try First while not (duplicateFound or EOF) do begin duplicateFound := duplicate check(s) Next end finally Restore bookmark EnableControls end hth On 6 March 2017 at 10:46, Marshland

Re: [DUG] Problem converting this

2017-03-26 Thread Jolyon Direnko-Smith
There is nothing that immediately jumps out as suspicious in the code, other than the call into OverByteICS code (which is not shown and so cannot be verified). If the problem is that for any given input you are now getting a different MD5 than you did previously, then the problem may simply be th

Re: [DUG] Unicode

2017-03-27 Thread Jolyon Direnko-Smith
No. Sorry, but in this case it really is a one word answer. On 28 March 2017 at 11:49, David O'Brien wrote: > Berlin 10.2: Is there any way of setting a project to NOT use Unicode? I > want a char to be an ansichar and a string to be an ansistring for the > entire project. This is a project ori

Re: [DUG] How to find Access Violation in the Initilization of Project

2017-04-11 Thread Jolyon Direnko-Smith
There's no such thing as a "$C005 access violation" as such. What you have is an access violation with the $C005 address involved. That address could be the location in memory of the instruction at which the AV occurred, or it could be the address of the memory than an instruction attempt