Re: [DUG] Why does this hang?

2011-08-01 Thread Jolyon Smith
Yep, critical to this is not what happens to the matching messages but what is being done (or not) with messages that don't match. I would expect to see an 'else' which repeats the call to PeekMessage but without the PM_REMOVE flag. Edward Huang edwa...@slingshot.co.nz wrote: Not 100% sure,

Re: [DUG] Email/SMTP code

2011-07-11 Thread Jolyon Smith
Indy uses blocking sockets - if it didn't, it wouldn't be as easy to work with. The down side is that if you call into an Indy client from the main thread of your app, then that main thread blocks until the Indy call completes. In a GUI app that means no message processing and therefore an

Re: [DUG] Variable in String

2011-06-28 Thread Jolyon Smith
); //has to be big enough first setlength(temp, getEnvironmentVariable(PChar('USERNAME'), PChar(temp), length(temp))); John From: Jolyon Smith mailto:jsm...@deltics.co.nz Sent: Monday, June 27, 2011 10:07 AM To: 'NZ Borland Developers Group - Delphi List' mailto:delphi

Re: [DUG] Variable in String

2011-06-26 Thread Jolyon Smith
\bin\ogr2ogr” -f PostgreSQL PG:host=192 user=postgres dbname=E5R password= '+ DXF +' -nln Import_Process'; All that ProgramName sees is the string variable FW_Path. Even with the +, all of the remaining string is ignored. Bob From: Jolyon Smith mailto:jsm

Re: [DUG] Variable in String

2011-06-26 Thread Jolyon Smith
Aha! J Quite possibly... SetLength(sDir, MAX_PATH); ZeroMemory(@sDir[1], MAX_PATH); if Succeeded(SHGetFolderPath(0, CSIDL_Program_Files, 0, 0, PAnsiChar(sDir))) then FW_Path := sDir; Yes, you are setting the string length to MAX_PATH, so any string data with a length of LESS than

Re: [DUG] Variable in String

2011-06-26 Thread Jolyon Smith
of the variable (PAnsiChar). Here is the code for doing that. SetLength(sDir, MAX_PATH); ZeroMemory(@sDir[1], MAX_PATH); if Succeeded(SHGetFolderPath(0, CSIDL_Program_Files, 0, 0, PAnsiChar(sDir))) then FW_Path := sDir; Bob From: Jolyon Smith mailto:jsm...@deltics.co.nz Sent: Wednesday

Re: [DUG] Variable in String

2011-06-22 Thread Jolyon Smith
Don’t quote FW_Path element of the program path – you need to quote the entire path AND program file name when/if any part of the path or the filename itself does – or may – contain spaces: e.g. “path a\sub a\sub b\prog.exe” not “path a”\sub\prog.exe So in your case, this

Re: [DUG] FW: Web development

2011-06-06 Thread Jolyon Smith
I think you're probably using tools like: print phello/p; LOL Well, ultimately anyone writing (emitting) HTML is using tools *exactly* like that. The question is, what tool do you use to create the code that ends up emitting it, if you don't emit it directly yourself ? The problem I

Re: [DUG] FW: Web development

2011-06-06 Thread Jolyon Smith
Not just J++ .NET was the EEE for Java. They had to settle for EE-ASLJC Embrace Extend Aw shucks, let's just co-exist :) ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin:

Re: [DUG] FW: Web development

2011-06-06 Thread Jolyon Smith
It's about complaining that an API call on Windows 95 works differently from Windows 8. Except that by and large they don't - in fact, the complaint is often quite the reverse (Why don't MS fix/improve this API in Windows 8? - answer: because it has to continue to work the same in all Windows

Re: [DUG] FW: Web development

2011-06-06 Thread Jolyon Smith
I took those observations to mean not that the intranets themselves rely on IE6 but that they are using web apps that don't behave properly in the new browsers. Or perhaps more accurately that they behave properly in the new browsers where proper is defined by the W3C, whereas proper used to be

Re: [DUG] FW: Web development

2011-06-03 Thread Jolyon Smith
: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Berend de Boer Sent: Friday, June 03, 2011 6:44 PM To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Web development Jolyon == Jolyon Smith jsm...@deltics.co.nz writes: Jolyon but in the end got fed up

Re: [DUG] COM issue

2011-06-02 Thread Jolyon Smith
First up, if both are running as separate processes then nothing is in the same space as such. It's been a long time since I did any detailed COM work so I'm a bit rusty, but I think the key to this will be the threading and instancing model your COM server is employing in the A process and

Re: [DUG] Web development

2011-06-02 Thread Jolyon Smith
I have been thinking about this myself. I started trying to get to grips with PHP, but in the end got fed up with wrestling with HTML and CSS - working with those technologies is like stepping back in time in terms to tools and debugging etc, and I found it frustrating and tiresome. So at that

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread Jolyon Smith
The JVCL has a self-building installer. Simply run install.bat from the JCL folder - this should build and run the installer which in turn - iirc - will identify which versions of Delphi you have installed and present a tab of installation settings for each Delphi version. It should all be

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread Jolyon Smith
Ah wait, I think I am thinking of the JCL. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Tuesday, 24 May 2011 15:49 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] File/Dir Open at My Computer

Re: [DUG] File/Dir Open at My Computer

2011-05-23 Thread Jolyon Smith
Yes, I was thinking of JCL - but the JVCL has the same installer model... run install.bat from the jvcl root folder, and this should build and launch the JVCL installer. What happens from there I don't know - as you may have guessed, I have previously installed the JCL but not the J*V*CL. :)

Re: [DUG] June 6th

2011-05-16 Thread Jolyon Smith
Oh heck, well spotted. Shurely shome mishtake ? From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of John Bird Sent: Tuesday, 17 May 2011 11:17 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] June 6th Monday 6th is Queens birthday

Re: [DUG] API to Windows explorer

2011-05-12 Thread Jolyon Smith
I think perhaps the point (being made quite lightly imho) was that improvisation - kiwi or otherwise - is not a laudible substitute FOR a robust disaster recovery plan. If nothing else positive comes from events in ChCh, it should at least be a wake up call for businesses who are choosing to

Re: [DUG] API to Windows explorer

2011-05-12 Thread Jolyon Smith
You mean this article ?: http://blogs.technet.com/b/markrussinovich/archive/2008/02/04/2826167.aspx Mark Russinovitch says in that very article: The changes apply both to Explorer copies as well as to ones initiated by applications using the CopyFileEx API So just call

Re: [DUG] Closing a modal form from code in it

2011-05-07 Thread Jolyon Smith
I'm pretty sure ModalResult is checked by, and is the exit condition for, the message loop within the ShowModal function itself, so it is checked as long as Windows messages are being handled by your process correctly. If you call Close without setting ModalResult then the form will indeed

Re: [DUG] Auckland mini-conference

2011-05-05 Thread Jolyon Smith
We're using FinalBuilder, tho not much anger involved - it just works (well, apart from when it stopped working with SVN due to a change in the format of the results returned by the SVN client, but they soon fixed that and iirc there was a workaround in the meantime, the details of which I

Re: [DUG] Delphi version for 64 bit

2011-05-02 Thread Jolyon Smith
You can assume that this version will be out later this year. You can assume anything you want, that won't necessarily make it so. ;) To be completely accurate, they have *announced* a 64-bit beta but (as of 6 days ago anyway) that beta still has not yet begun. Even if a first version is

Re: [DUG] XML data to image problem

2011-04-20 Thread Jolyon Smith
Create a test case that you know should work... i.e. take a known jpeg file, encode as base 64, embed in an XML and run it thru your code. If you don't get a valid JPEG file at the end, then you know the code has a problem - fix it so that you do get a valid JPEG then run it on your real case

Re: [DUG] Emulate a very basic web server using TCPServer

2011-03-20 Thread Jolyon Smith
I suggest you look at the properties of the TIdHTTPRequestInfo object you get, corresponding to a browser request. All the information you need can be found there I suspect. J From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Monday,

Re: [DUG] Delphi Starter Edition

2011-03-13 Thread Jolyon Smith
I don't think you can rely on your charitable status to avoid the ridiculous $1000 license condition as that is $1000 *revenue*, not profit. Quite how revenue is defined and how Embarcadero would identify and apportion income as deriving from Starter built apps or services is not specified. If

Re: [DUG] Access to street maps

2011-03-13 Thread Jolyon Smith
I am guessing that the certain turnover you have in mind is significantly higher than the US$1000 revenue limit attached to Starter Edition. If you do the math on those license terms, basically Embarcadero want your first $1000 revenue for themselves - they take a $200 down payment then grab

Re: [DUG] Delphi 7 on a Netbook

2011-03-13 Thread Jolyon Smith
I remember developing in 640x480 in SQLWindows. Going to 1024x768 was a HUGE upgrade, made even better if the monitor supported that resolution non-interlaced. Tho I seem to recall that by the time we got even to Delphi 1.0, 1024x768 was pretty much standard. Or maybe I was just lucky enough

Re: [DUG] Contents of Delphi digest...

2011-03-13 Thread Jolyon Smith
Ø Just wondering if there is a Tutorial on how to trim replies? Ø I think highlighting the text and deleting works ? It’s a tough one for a mail list, as context for a reply isn’t intrinsically preserved in the medium. If replying in the main to a number of points/questions from a

Re: [DUG] Delphi Starter Edition

2011-03-08 Thread Jolyon Smith
Yes and No. Starter Edition does not include DBExpress, only InterbaseExpress so you cannot use DBExpress to talk to MySQL. As the name suggests, you can only use InterbaseExpress with Interbase databases. However, you can still of course use ADO, ODBC or 3rd party DB Connectivity libraries

Re: [DUG] Move mouse to ListItem

2011-03-07 Thread Jolyon Smith
I wonder if the issue discussed in this thread might be relevant: http://social.msdn.microsoft.com/Forums/en-CA/vcgeneral/thread/ff2381fd-2783 -431e-ba86-ccdf269d7722 (LVM_GetItemPosition can be broken in report/list view on Vista/Win7 depending on manifest. TListItem.Position uses

Re: [DUG] Move mouse to ListItem

2011-03-03 Thread Jolyon Smith
These fragments should set you down the right road, at least: J uses CommCtrl var rc: TRect; idx: Integer; begin idx := Listview.Selected.Index; ListView_GetItemRect( Listview.Handle, idx, rc, LVIR_BOUNDS ); end; From: delphi-boun...@delphi.org.nz

Re: [DUG] Listview problem

2011-02-24 Thread Jolyon Smith
A WM_VSCROLL message handler works perfectly for me. However, this will only be sent for scrollbar directed scrolling. To also handle mousewheel scrolling you will have to implement a WM_MOUSEWHEEL message handler (and WM_HMOUSEWHEEL if appropriate to your needs). Could it be mouse

Re: [DUG] Listview problem

2011-02-24 Thread Jolyon Smith
. On Fri, Feb 25, 2011 at 2:01 PM, David O'Brien d...@iccs.co.nz wrote: Sorted it thanks, had mixed versions of code in the component. The events do fire. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Friday, 25 February 2011 3:43 p.m

Re: [DUG] Validating a TListItem exists

2011-02-01 Thread Jolyon Smith
...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Tuesday, 1 February 2011 2:05 PM To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Validating a TListItem exists If the original item has been Free'd, then it either: a) Points to nothing

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
FWIW, this looks promising and gratifyingly similar to something I previously suggested. Here's hoping it works out well. For future reference tho, Embarcadero really need to co-ordinate these sorts of announcements far, FAR better. I first read about this last week but without any concrete

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
Available from the AU online store for AU$260, or NZ$335 USAU NZ At forex rates: 200 200.50 258 At Embarcadero rates:200 259 335 I hope (but do not expect that) the US$1000 revenue limit imposed on the license is similarly generously

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
Malcolm, NZ doesn't have a specific store listed in the Buy Online section of the Embarcadero site, so I was using the AUD prices quoted on the AUSTRALIA store. Should we (in NZ) be using the South East Asia store instead? That's not much better - in fact it's exactly the same as the AUD store,

Re: [DUG] Validating a TListItem exists

2011-01-31 Thread Jolyon Smith
AFAIK when an item is deleted from a listview it is also free'd. Unavoidably. If you have a reference to a list item that may have been deleted from the list view, then any attempt to use that reference subsequent to it's being deleted is likely to fall foul of an access violation (best case:

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Tuesday, 1 February 2011 10:51 a.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Delphi Starter Edition Malcolm, NZ doesn't have a specific store listed in the Buy Online

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
Yes, tho with some odd exclusions if the feature matrix is accurate, e.g. some rather petty limitations in the debugger/COM support imho. But overall, this is pretty much what I had in mind when I envisioned a Community Edition a couple of years ago. :) The $1000 revenue limit is also bizarrely

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
It's an annual limit afaik. But it's a revenue limit, not profit, with no allowance for any the costs that even a hobbyist or open source developer might incur. e.g. if someone makes software available for download they will most likely incur traffic costs for the downloads. With a donation

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
I find it depressing that people still can't seem to get away from thinking that people will set out to cheat Embarcadero by gaming reasonable license restrictions. Most (most not all) people only cheat when they feel that the rules aren't fair in the first place. And as for profit being

Re: [DUG] Validating a TListItem exists

2011-01-31 Thread Jolyon Smith
an is operation, but it looks like some work required to avoid the issue completely. Cheers. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Tuesday, 1 February 2011 10:59 AM To: 'NZ Borland Developers Group - Delphi List' Subject: Re

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
The Starter License includes the US$1000 revenue limit as a /condition of the license/. If you exceed $1000 then your Starter license is quite simply no longer valid, in exactly the same way that if you buy in NZ (from the International USD Store) then move to Australia your licenses are also

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Tuesday, 1 February 2011 1:15 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Delphi Starter Edition It's an annual limit afaik. But it's a revenue limit, not profit, with no allowance for any the costs that even a hobbyist or open

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
will be to embacardo if they have made a bad decision. Whats that saying.. Better a million people pirating my software than pirating the competitions. :) eventually there is a return from someone. On Tue, Feb 1, 2011 at 1:45 PM, Jolyon Smith jsm...@deltics.co.nz wrote: I find it depressing

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
documentation and simplicity were ;D (and its price) On Tue, Feb 1, 2011 at 2:38 PM, Jolyon Smith jsm...@deltics.co.nz wrote: Who said anything about providing unrestricted full access licenses on an honour system ? That's an extrapolation of an argument nobody is making to a conclusion

Re: [DUG] Delphi Starter Edition

2011-01-31 Thread Jolyon Smith
Ø I thought Standard was mostly equivalent to the Pro version in terms of functionality? Or is it crippled in some fashion? Assuming you meant the new “Starter Edition” (since there hasn’t been a “Standard” edition for as long as I can remember... J ), here’s a link to the complete feature

Re: [DUG] Object is Object vs Object.Classname = 'Object'

2011-01-25 Thread Jolyon Smith
The two are not comparable in function so cannot really be compared for efficiency: if a is b then Will evaluate true if a is an instance of b or of any class derived from b. if (abc.Classname = 'TMyObject') then Will evaluate true only if abc is an instance of TMyObject and only

Re: [DUG] WM_TOUCH messages

2011-01-23 Thread Jolyon Smith
My guess (and it is just a guess) is that you are running into an architectural characteristic of (MS) Windows that only one Window can have the input focus at any time, so you cannot have messages arriving simultaneously in different controls. I may be wrong, but I would be surprised if touch

Re: [DUG] Variabels stored

2011-01-20 Thread Jolyon Smith
Well, to be fair the same is true even if you declare it simply as a public member. You change that public member to a public property with read/write accessors if you need to, without changing the code that uses the public member. The reason to declare a member as a property is when you

Re: [DUG] Variables stored

2011-01-20 Thread Jolyon Smith
Assignable typed constants are pointless. If you are going to declare a constant and then use a compiler switch to make it behave like a variable, then be honest and just use a variable!! Typed constants cannot even be used where normal constants can be: const ONE: Integer

Re: [DUG] Variables stored

2011-01-20 Thread Jolyon Smith
...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Friday, 21 January 2011 9:44 AM To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Variables stored Assignable typed constants are pointless. If you are going to declare a constant and then use a compiler switch to make it behave like

Re: [DUG] Variables stored

2011-01-20 Thread Jolyon Smith
you might be able to go even one better by setting the Action = caFree This is hardly ever a good idea when a form is intended to be used as a dialog as it is a frequent pattern to pass information back from the dialog to the invoking code via public properties of the dialog form class: Dlg

Re: [DUG] Arc's

2011-01-18 Thread Jolyon Smith
Drawing an arc is already easy, using the Canvas.Arc() method that you have already identified. J You simply need to derive the values required to input to that method. J Given that you have the start/end points and it seems from the way you have put it that these are known to be on the

Re: [DUG] Auckland Company Developing in Delphi

2011-01-18 Thread Jolyon Smith
, and therefore shouldn't care - but I would still like to know why Leigh is asking this question. Alister Christie Computers for People Ph: 04 471 1849 Fax: 04 471 1266 http://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington On 19/01/2011 1:04 p.m., Jolyon Smith wrote: He did ask

Re: [DUG] Validating CDS files

2011-01-17 Thread Jolyon Smith
Which takes me right back to the very first software development course I ever attended. One half of a day was spent learning the most important lesson I ever learned in this business... Be cautious or even suspicious when a specification/question is provided in the form of a request

Re: [DUG] Validating CDS files

2011-01-17 Thread Jolyon Smith
Oh, I should thank you for providing the bones of a blog post. :) http://www.deltics.co.nz/blog Thank you. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Matthew Comb Sent: Monday, 17 January 2011 22:34 To: NZ Borland

Re: [DUG] Validating CDS files

2011-01-17 Thread Jolyon Smith
Those developers that came back with TO DO lists were perhaps themselves not taking the time to understand the customers problems. The customer told them those 10,000 features are great, but we'd really like X, Y and Z, so the developers simply came back to you with that list of X, Y and Z. Far

Re: [DUG] Validating CDS files

2011-01-17 Thread Jolyon Smith
You seem to be missing your own time and money factor... an hour spent analysing a problem can save days spent wasting time building the solution that was asked for but which ultimately wasn't needed. Thats just rubbish Such a comprehensively and well presented case is hard to argue with.

Re: [DUG] Validating CDS files

2011-01-17 Thread Jolyon Smith
LOL Just wait for the blu-ray, with director's commentary, out-takes and a special Making of featurette. :) -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of David Brennan Sent: Tuesday, 18 January 2011 12:44 To: 'NZ Borland

Re: [DUG] Validating CDS files

2011-01-17 Thread Jolyon Smith
You are making an assumption that the analysis has not been already done. You are assuming that people are not adequately informed. That can only be determined by inquiring. I'd rather not assume that someone is fully informed - that is a more dangerous assumption. Of course, one can never

[DUG] Apologies (Was RE: Validating CDS files)

2011-01-17 Thread Jolyon Smith
I do hope Kyley's comments were intended with tongue in cheek. Matthew's comments about people feeling flamed surprised and saddened me... I was only replying to his messages, and when someone publicly accuses me of arrogance and regarding someone as retarded when I absolutely did not, I feel

Re: [DUG] Validating CDS files

2011-01-16 Thread Jolyon Smith
What does validate mean for a CDS file ? For XML it obviously/intuitively means is a valid XML representation of a CDS file but for a CDS file, if you dumped it from a client data set in the first place, what additional validation would be needed to ensure that it is a CDS file ? -Original

Re: [DUG] Validating CDS files

2011-01-16 Thread Jolyon Smith
What I'm really after is a file level test to check that file should even be attempted. e.g. open file stream seek start and seek end and check a couple of bytes... that type of thing. It seems to me that such a check would be incomplete and therefore unreliable and that you may introduce this

Re: [DUG] Validating CDS files

2011-01-16 Thread Jolyon Smith
H. Flakey wireless LAN ? Surely wifi (or any LAN tech for that matter) has mechanisms built in to the protocol to ensure this sort of thing does not occur certainly even with the flakiest of wifi connections I have never experienced corruption. The wifi connection is either made,

Re: [DUG] Maths problem for the day

2011-01-10 Thread Jolyon Smith
Not Power(), Log10(): Max := Bias.Position * Log10(Files); From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 11 January 2011 14:25 To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG] Maths problem for the day

Re: [DUG] Maths problem for the day

2011-01-10 Thread Jolyon Smith
Darn, I got carried away... it's not quite that straightforward (unless your algorithm can be adjusted accordingly). From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 11 January 2011 14:25 To: 'NZ Borland Developers Group -

Re: [DUG] Maths problem for the day

2011-01-10 Thread Jolyon Smith
Here ya go: Max := Bias.Position * Trunc( Log10( 10 * ( High(Files) div 3 ) ) ); From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ross Levis Sent: Tuesday, 11 January 2011 14:25 To: 'NZ Borland Developers Group - Delphi List' Subject: [DUG]

Re: [DUG] Maths problem for the day

2011-01-10 Thread Jolyon Smith
Nice one Glen!! I made it harder on myself by self-imposing Integers (and actually you'd still need to handle High(Files) for 0, 1 and 2 separately as these will trap Log10() with a ZeroDivide error in my case. DOH! J That was a fun diversion tho. From:

Re: [DUG] Maths problem for the day

2011-01-10 Thread Jolyon Smith
Subject: Re: [DUG] Maths problem for the day That was my point, the original describes exactly what was intended. One liners generally don't and tend to introduce errors C. - Original Message - From: Jolyon Smith mailto:jsm...@deltics.co.nz To: 'NZ Borland Developers Group

Re: [DUG] Delphi roadmap

2011-01-09 Thread Jolyon Smith
MS has tools for OS/X ?!? ;) The problem I see with their multi-platform direction is that the platforms they are targeting are all well served by completely free tools. Unless Embarcadero sort out their thinking w.r.t. low cost, entry level SKU's for their software development products and

Re: [DUG] Delphi roadmap

2011-01-07 Thread Jolyon Smith
From the article... Denver frees PCs, workstations and servers from the hegemony and inefficiency of the x86 architecture Hegemony... often mistakenly used to suggest brute power or dominance, when it is better defined as emphasizing how control is achieved through consensus not force WinTel

Re: [DUG] Delphi talking to C#

2010-12-13 Thread Jolyon Smith
Simple answer : Yes, lots of different ways. Which is the best/most appropriate will depend on precisely what sort of information, what frequency, what volume etc... A shared memory mapped file allows two applications to share a piece of memory, which can provide the basis for very direct

Re: [DUG] Delphi talking to C#

2010-12-13 Thread Jolyon Smith
RemObjects is MASSIVE overkill compared to a basic IPC mechanism using a TCP/IP client-server approach with Indy. It is also hugely expensive if you are using it as nothing more than an over-elaborate IPC mechanism. Indy is free. J From: delphi-boun...@delphi.org.nz

Re: [DUG] Problem redeeming Delphi XE BOGO free product

2010-12-13 Thread Jolyon Smith
I don't see the problem... the BOG-OFF system is working perfectly... come 31st December, everyone that was let down by the past 2 versions and didn't upgrade because those releases had nothing to offer them, can just BOG-OFF and use something else instead. ;) -Original Message- From:

Re: [DUG] Problem redeeming Delphi XE BOGO free product

2010-12-13 Thread Jolyon Smith
Favourites are Firefox V4 (wait until you see how fast it starts up - under 10 secs to page loaded - and the Panorama tab view). Is 10 secs supposed to be impressive ? Chrome+ (note: NOT Google Chrome) 1.5.0 - start and load my iGoogle home page is 4 secs on my system (and that includes all

Re: [DUG] Problem redeeming Delphi XE BOGO free product

2010-12-13 Thread Jolyon Smith
OK, looks like you (and perhaps FireFox) say tabs where I say thumb-nailed bookmark ;) A tab to me is a page actively loaded from a web site. Think of it as an alternative to bookmarks and opening bookmarks. From what I (briefly) have seen of Panorama, it's not a revolutionary new paradigm

Re: [DUG] Web Sockets security hole

2010-12-12 Thread Jolyon Smith
I may be wrong but a quick read of the top link suggests to me that the issues lies specifically in the implementation of various proxies. If that’s the case, any implications for Delphi would be for people implementing proxies using Indy, but NOT for clients or servers themselves.

Re: [DUG] Web Sockets security hole

2010-12-12 Thread Jolyon Smith
at (even if the proxy were not a Delphi product)? (I use diddly squat Indy stuff myself so all of this is at a distance from me – just wanted to pass it on) John From: Jolyon Smith mailto:jsm...@deltics.co.nz Sent: Monday, December 13, 2010 11:20 AM To: 'NZ Borland Developers Group - Delphi

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread Jolyon Smith
facetious After your current: Version := current code; Just add: if Version = unknown then Version := Windows2008_64Bit; /facetious :D (sorry, couldn't resist - I'm guessing there are other versions that escape detection too however :) ) -Original Message- From:

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread Jolyon Smith
More seriously... on your hunt for info, did you come across this perchance: http://www.codeguru.com/cpp/w-p/system/systeminformation/article.php/c8973 Not Delphi code, but more general information which should be easily incorporated in your current algorithm I should think. The only thing it

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread Jolyon Smith
ProgramFiles(x86) environment variable which is only set on 64 bit versions Only set **automatically by the OS**- there's presumably nothing stopping someone from setting such an environment variable for their own purposes should they choose so to do. Why would they? Who knows. But they

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread Jolyon Smith
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Monday, 13 December 2010 2:09 p.m. To: 'NZ Borland Developers Group - Delphi List' Subject: Re: [DUG] Help Detecting Windows Version ProgramFiles(x86) environment variable which is only set on 64 bit versions Only set

Re: [DUG] Help Detecting Windows Version

2010-12-12 Thread Jolyon Smith
Yep, IsWOW64Process() requires (i.e. is only present in) XP *SP2* Get[Native]SystemInfo() appears to be the way to go for a consistent mechanism across all relevant Windows versions, including XP pre-SP2. http://msdn.microsoft.com/en-us/library/ms724429(v=vs.85).aspx -Original

Re: [DUG] Indy ConnectTimeout/ReadTimeout recomendations

2010-12-12 Thread Jolyon Smith
The question is how quickly the web site is likely to respond, not how fat your pipe connecting to it is. 3 seconds could easily be nowhere near long enough if the server is under heavy load. You say you don't want to delay the routine if the web site is down, but you presumably don't wish to

Re: [DUG] Current Registrations

2010-12-02 Thread Jolyon Smith
so long as Delphi keeps working for 30 days without registration! I'm pretty sure it hasn't allowed unregistered/unactivated use for some versions now. Delphi 6 was the last time you didn't have to get permission to use something you legitimately own in order to use it. Delphi 7 reportedly

Re: [DUG] Current Registrations

2010-12-02 Thread Jolyon Smith
or eventually). Ø Every version since gives you 30 days use before requiring activation. Is there some trick to getting the grace period? Because this doesn’t fit my experience. On 03/12/2010 11:17 AM, Jolyon Smith jsm...@deltics.co.nz wrote: so long as Delphi keeps working for 30 days without

Re: [DUG] Current Registrations

2010-12-02 Thread Jolyon Smith
- except the one that takes over an hour to install. I have all versions. On 03/12/2010 11:55 AM, Jolyon Smith jsm...@deltics.co.nz wrote: Ø Delphi 7 doesn't require activation. As I said, that was my recollection, but when I tried to use it most recently I found that my recollection

Re: [DUG] Current Registrations

2010-12-01 Thread Jolyon Smith
For trial versions it seems to be 1 (one) Which was a real pain when my Rad PHP trial activation failed, but only after bumping the count. Needless to say, I didn't bother trying to sort that out - I just went back to NetBeans... it has some annoying querks, but it's free and, more

Re: [DUG] Toolsets (was Re: Company closing)

2010-11-30 Thread Jolyon Smith
blend in with the OS themes and styling – the next version of Firefox (V4) for instance will get quite different appearances (more than now for instance) on XP, Windows 7, mac and linux to better fit in with each OS styling. John On 30 November 2010 09:56, Jolyon Smith jsm...@deltics.co.nz

Re: [DUG] Automatic build process

2010-11-30 Thread Jolyon Smith
- FinalBuilder Nothing more needs to be said. :) -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Ayers, Stephen Sent: Wednesday, 1 December 2010 11:50 To: delphi@delphi.org.nz Subject: [DUG] Automatic build process Hi there

Re: [DUG] DelphiDroid

2010-11-29 Thread Jolyon Smith
page says it creates a full Android (Java) solution so presumably that means it creates Java code which will run on any Android supporting Java. From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jolyon Smith Sent: Monday, 29 November 2010 5:45 PM To: 'NZ

Re: [DUG] Toolsets (was Re: Company closing)

2010-11-29 Thread Jolyon Smith
Similarly chiming in... The best tool for ploughing a field isn't the best tool for turning the soil in a flower bed, or even an allotment. The best tool (and/or GUI framework) for building Windows apps isn't necessarily the best tool for building Cocoa apps. What we need is a Delphi for Cocoa.

Re: [DUG] Company closing

2010-11-28 Thread Jolyon Smith
And more importantly, the crucial thing is knowing which is the right/best one to use for any particular problem at hand. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Alister Christie Sent: Monday, 29 November 2010 11:27 To: NZ

Re: [DUG] Company closing

2010-11-28 Thread Jolyon Smith
Is it a compiler? Technically I mean - I'd call it a translator. :) I wonder how far it can go though, beyond the simple examples I mean. Translating a push button and a call to ShowMessage() is one thing. Being able to translate a complex application with all the libraries that Android must

Re: [DUG] Company closing

2010-11-28 Thread Jolyon Smith
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of Jeremy Coulter Sent: Monday, 29 November 2010 13:23 To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Company closing you should download it and make it do more then :-) jeremy On Mon, Nov 29, 2010 at 1:12 PM, Jolyon Smith jsm

Re: [DUG] DelphiDroid

2010-11-28 Thread Jolyon Smith
what I heard it will be native - although all I've heard are rumors - certainly no statement of intent. Alister Christie Computers for People Ph: 04 471 1849 Fax: 04 471 1266 http://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington On 29/11/2010 4:19 p.m., Jolyon Smith wrote

Re: [DUG] Company closing

2010-11-25 Thread Jolyon Smith
Sorry to hear that Alistair. Good luck. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Alistair Ward Sent: Friday, 26 November 2010 15:57 To: delphi@delphi.org.nz Subject: [DUG] Company closing Hi All, I know I haven't been

  1   2   3   4   >