Re: [DUG] [computing] Sizeof record gives error

2011-08-28 Thread David Moorhouse (DUG)
LogData.LogType := LogType; LogData.LogArgs := CreateConstArray(Args); // ... do some other stuff with the LogData item finally calling end; Cheers On 26/08/2011 1:49 a.m., David Moorhouse wrote: Hi Peter Been there done that :) The function call is fine

Re: [DUG] [computing] Sizeof record gives error

2011-08-25 Thread David Moorhouse
whatever it contains. Cheers On 25/08/2011 11:40 a.m., David Moorhouse (DUG) wrote: I have the following code snippet code type PConstArray = ^TConstArray; TConstArray = array of TVarRec; function CreateConstArray(const Elements: array of const): TConstArray; type TLogType

[DUG] Sizeof record gives error

2011-08-24 Thread David Moorhouse (DUG)
I have the following code snippet code type PConstArray = ^TConstArray; TConstArray = array of TVarRec; function CreateConstArray(const Elements: array of const): TConstArray; type TLogType = (ltError, ltWarn, ltInfo); PLogData = ^TLogData; TLogData = record LogType: TLogType;

Re: [DUG] Sizeof record gives error

2011-08-24 Thread David Moorhouse (DUG)
, Colin On 25 August 2011 09:40, David Moorhouse (DUG) del...@moorhouse.net.nz wrote: I have the following code snippet code type  PConstArray = ^TConstArray;  TConstArray = array of TVarRec; function CreateConstArray(const Elements: array of const): TConstArray; type  TLogType = (ltError

Re: [DUG] Sizeof record gives error

2011-08-24 Thread David Moorhouse (DUG)
of the array to get the correct size. On Thu, Aug 25, 2011 at 11:40 AM, David Moorhouse (DUG) del...@moorhouse.net.nz wrote: I have the following code snippet code type PConstArray = ^TConstArray; TConstArray = array of TVarRec; function CreateConstArray(const Elements: array of const

Re: [DUG] File Path

2011-06-20 Thread David Moorhouse (DUG)
Hi Bob Info is in the linked article http://delphi.about.com/od/kbwinshell/a/SHGetFolderPath.htm Cheers David On 21/06/11 05:25, Bob Pawley wrote: Hi I have an executable which I need to access that is installed in Program Files. With the advent of 64 byte in Windows 7, I need to

Re: [DUG] API to Windows explorer

2011-05-12 Thread David Moorhouse (DUG)
Aside – I heard of one firm that had a server and a Wifi router on a UPS that had their network guy park outside with a wifi laptop and copy stuff from the server before the UPS died. Couldn’t go in because the the front of the building had fallen out into the street. Thats a cool idea

Re: [DUG] Christchurch Members

2011-02-25 Thread David Moorhouse (DUG)
Actually, Jeremy was bunking off work for a week and has invented this great big story about being in hospital :) ... | | | | v ... Really glad to hear you're OK buddy. We've been told Tuesday is the earliest we can expect to be back at work. In the interim there's heaps of

Re: [DUG] Indy TidTCPServer question

2011-02-15 Thread David Moorhouse (DUG)
Hi Ross It's up to you to implement a protocol (e.g. look at the http protocol). Typically maintain some sort of header and payload. The TCP layer will handle ensuring the messages are delivered, however you package the file up, unlike UDP. Hope this helps D On 15/02/11 22:29, Ross

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

2011-01-24 Thread David Moorhouse (DUG)
Have you timed it ? My gut feeling is the first form is a pointer comparison, so would be very quick, whereas the second form is a string comparison so not as quick. Also the first has the advantage of compile time checking. 0.02c D On 25/01/11 17:46, Ross Levis wrote: Just as a matter

Re: [DUG] Variabels stored

2011-01-20 Thread David Moorhouse (DUG)
Or as field properties if you want to access them from another form ... type TWallaceForm = class(TForm) btnOK: TButton; private FWallacesPrivateVar: string; // private storage public property WallacesPrivateVar: string read FWallacesPrivateVar write

Re: [DUG] Variabels stored

2011-01-20 Thread David Moorhouse (DUG)
the read/write are functions or procedures. Just make the string public. *From:*delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] *On Behalf Of *David Moorhouse (DUG) *Sent:* Thursday, 20 January 2011 11:18 PM *To:* NZ Borland Developers Group - Delphi List *Subject:* Re

Re: [DUG] Current Registrations

2010-12-01 Thread David Moorhouse (DUG)
Where I work we think it is around 10. HTH D Does any one know what the Current Registrations count is before you need to contact Embarcadero to get it reset? I had been playing around with some Vm's a while back and I noticed my count is now 4 :-) Thanks, Jeremy

Re: [DUG] DelphiDroid

2010-11-29 Thread David Moorhouse (DUG)
The linked article gives a great overview of the Android architecture for people who want to get up to speed with a new platform. http://www.tbray.org/ongoing/When/201x/2010/11/14/What-Android-Is D I think we're talking about two different things: 1.There's a proof of concept of a

Re: [DUG] Fwd: FW: Delphi XE update 1 fails

2010-11-18 Thread David Moorhouse (DUG)
[mailto:delphi-boun...@delphi.org.nz] On Behalf Of David Moorhouse (DUG) Sent: Tuesday, 16 November 2010 10:11 AM To: NZ Borland Developers Group - Delphi List Subject: [DUG] Delphi XE update 1 fails Hi We're trying to install this update from behind a corporate firewall, and our web sanitiser (Web

[DUG] Delphi XE update 1 fails

2010-11-15 Thread David Moorhouse (DUG)
Hi We're trying to install this update from behind a corporate firewall, and our web sanitiser (Web Marshall) cannot open the downloaded 7zip files for checking. So no update happening here. When is EMB going to come up with something that works for a change ? David

Re: [DUG] Buy One Get One

2010-10-20 Thread David Moorhouse (DUG)
/10 15:40, Richard Vowles wrote: Yes it sure is! It was discussed today at the event and olivia was planning to send out an email. At airport now heading to christchurch so will talk to olivia tonight to make sure it gets sent out. On 20 Oct 2010 06:59, David Moorhouse (DUG) del

[DUG] Buy One Get One

2010-10-19 Thread David Moorhouse (DUG)
Hi Richard Is this offer available through Developers Inc ? http://www.embarcadero.com/bogo-info Thanks David ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi

Re: [DUG] You're gonna get an invite tonight!

2010-10-05 Thread David Moorhouse (DUG)
Hi Richard I'm still waiting for my invite - you can send it to my work address if that's easier. davi...@pegasus.org.nz Cheers David On 30/09/10 16:14, Richard Vowles wrote: Hi guys, If all goes to plan, you should get some email from us tonight inviting you to the NZ launch (Auckland

Re: [DUG] formatting a string for HTML

2010-07-28 Thread David Moorhouse (DUG)
In the Internet/HTTPApp.pas unit function HTTPDecode(const AStr: AnsiString): AnsiString; function HTTPEncode(const AStr: AnsiString): AnsiString; function HTMLEncode(const AStr: String): String; function HTMLDecode(const AStr: String): String; HTH David Original Message

Re: [DUG] Auckland Event

2009-10-13 Thread David Moorhouse (DUG)
Just move to Chch We're walking to tomorrow's event :) CU there tomorrow. D Todd Martin wrote: Hi Malcolm Unfortunately I couldn't make the seminar this morning. Would it be possible to schedule future events for the afternoon? If I have to come into the city, I prefer to fight the

Re: [DUG] Excel

2009-09-21 Thread David Moorhouse (DUG)
Hi John We're using the NativeExcel2 components from nika soft - they give full access to all internal excel obejcts i.e. cells, formulas, formatting, charts, embedded pictures etc. Depends what you need. HTH D John Bird wrote: Hope this doesn't get lost in the flurry of posts! Anyone

Re: [DUG] 2010 Launch

2009-08-31 Thread David Moorhouse (DUG)
Hi Richard What specials would they be :) Embarcadero or Air NZ ? The air flight specials are OK if you're retired but a bit limited otherwise. David Richard Vowles wrote: Hi guys, As you may have noticed from Malcolm's posting we are trying to organize a 2010 launch out here. Keep

Re: [DUG] How to create a highlighted presentation

2009-07-15 Thread David Moorhouse
Use the Firefox Web Developer extension to View Generated Source HTH D On Wed, 15 Jul 2009 20:50:24 +1200, you wrote: Hi all TradeMe has a nice presentation in case you enlarge a photo; background vague and photo clearly visible. I had a look at their source but can't really figure out

Re: [DUG] SMS Providers in NZ?

2008-12-11 Thread David Moorhouse
We've used Dialhog Ltd with good results. D - David Moorhouse Development Director Moorhouse Works ltd phone 027 236 5415 www.moorhouse.co.nz - On Mon, 8 Dec 2008 09:45:06 +1300, you wrote: Is anybody using any SMS gateway providers

Re: [DUG] Web service - MySQL 4.1 and Delphi 2007

2008-12-11 Thread David Moorhouse
DBX or Zeoslib http://sourceforge.net/projects/zeoslib http://zeos.firmos.at/portal.php D On Thu, 11 Dec 2008 09:08:52 +1300, you wrote: Hi All I am creating a web service that will connect to a MYSQl 4.1 DB that I am also creating. I don't have a lot of MySQL experience but the web dev

Re: [DUG] D2009 or later version suggestion....

2008-12-11 Thread David Moorhouse
I second MMX D On Wed, 10 Dec 2008 21:49:01 +1300, you wrote: MMX displays it John Bird wrote: Incidentally the one enhancement to Delphi I keep finding I would love is a very simple one, and everyone I mention it to also thinks its a great idea: If the status bar etc showed the name of

Re: [DUG] Dbase File Data Update

2008-10-27 Thread David Moorhouse
Hi Wallace You need to post the record to make the changes permanent. HTH D On Mon, 27 Oct 2008 18:34:56 +1300, you wrote: I am trying to increase a value in a dbaseIII file. When I press the Inc button, the referenced dbEdit field increases with each click. However on exiting the

Re: [DUG] Compnent creation question

2008-10-14 Thread David Moorhouse
The window handle has probably been destroyed at this stage - hence the error. I'm not near my dev box - so off the top of my head try over riding the dispatch method for the OnDestroy method and call your code in there. HTH D On Wed, 15 Oct 2008 16:22:44 +1300, you wrote: Hi Just trying

Re: [DUG] SOAP

2008-08-20 Thread David Moorhouse
Dr Bob http://www.drbob42.com/soap/index.htm Delphi About http://delphi.about.com/od/webservices/Developing_Web_Services_with_Delphi.htm HTH D - David Moorhouse Moorhouse Works ltd www.moorhouse.co.nz - On Thu, 21 Aug 2008 14:44:21

Re: [DUG] D7 vs D2007

2008-08-11 Thread David Moorhouse
MMX is a very cool tool. My productivity would suffer without it. However you do _need_ a widescreen or secondary monitor to make best use of it. Cheers D On Tue, 12 Aug 2008 09:22:48 +1200, you wrote: This is available in MMX: http://www.modelmakertools.com/code-explorer/index.html (the

Re: [DUG] OO Programming

2008-07-29 Thread David Moorhouse
parts fit together. David - David Moorhouse Moorhouse Works ltd www.moorhouse.co.nz - On Tue, 29 Jul 2008 17:08:08 +1200, Delphi Digest wrote: Do people on this list put in the effort to write proper object oriented code, or write

Re: [DUG] List Server Back Up

2008-06-24 Thread David Moorhouse
Been a quiet couple of weeks ;) D On Wed, 25 Jun 2008 00:14:42 +1200, you wrote: HI all, Well you will have now realised that the Delphi List is back up. Our apologies for the outage, but a fried server, including the backup disks, has presented some problems, none the least a decent bill

Re: [DUG] Delphi 3 Upgrade

2008-05-26 Thread David Moorhouse
Hi Colin What version of D5 do you have ? D On the other hand, for some unknown reason I've just realised that my Delphi 5 is missing the Data Aware components, equivalent to those that were installed into Delphi 3, from file dcld30.dpl and of course needed to do the work.

Re: [DUG] Delphi 3 Upgrade

2008-05-26 Thread David Moorhouse
My version installs DCLDB50.BPL Have you got this file on your system. It lives in the bin directory and will be on your install disk in the runimages/bin directory. HTH D Here's all of it :- Delphi Standard, Version 5.0 Build 5.62 (c) !983-1999 Inprise Corp Serial # HDC

Re: [DUG] ADMIN: Delphi List Issues

2008-04-23 Thread David Moorhouse
Don't handle sending emails yourself. Send them to a good local mail system such as postfix on Unix and that will deliver your mail much more reliably. Actually, my experience is that the server and OS have nothing to do with it at all. Cheers D

Re: [DUG] List Issues

2008-04-22 Thread David Moorhouse
For instace. The time is currently 19:54...what time do you get this message...anyone 20:33:03 Cheers D ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi

Re: [DUG] Speed of loading a Client DataSet

2007-12-05 Thread David Moorhouse
Hi John TDatset.FieldByName is slow - and you're repeating it 15,000X5 times. Much better to declare 5 TField type vars, use TDataSet.FindField or TDataSet.FieldByName to assign them prior to the loop. See how you get on. Cheers D On Thu, 6 Dec 2007 15:35:49 +1300, you wrote: I want to use

Re: [DUG] SOAP

2007-12-03 Thread David Moorhouse
HTH Cheers D Building a stand-alone Web service with Indy Abstract: This article shows how to build a Web service using Indy and Delphi 6. By Dave Nottage. This article explains how to fit Indy into Delphi 6's Web services (SOAP) support. For more on creating Web services, please refer

Re: [DUG] SOAP

2007-12-03 Thread David Moorhouse
the article but cant download the example (from the 'here' link). Could you possibly download it and email it to me off list ? Rob Martin Software Engineer phone +64 03 377 0495 fax +64 03 377 0496 web www.chreos.com Wild Software Ltd David Moorhouse wrote: HTH Cheers D Building a stand

Re: [DUG] (no subject)

2007-10-12 Thread David Moorhouse
Hi Al Wolfgang Ehrhardt has an extensive collection of hash and encryption pascal code on his home page, including the 128 bit block ciphers AES and Twofish, the 64 bit block cipher Blowfish, and the stream cipher Salsa20 . http://home.netsurf.de/wolfgang.ehrhardt/index.html HTH D On Fri,

Re: [DUG] D2007 - TDBLookupComboBox and TDBLookupListBox - missing combos in properties

2007-10-03 Thread David Moorhouse
Hi Eric I've noticed the same thing with D2007. It did work in D7 so it's not just me ;) I can email you the code for a package which will register the property editors. Cheers D On Wed, 3 Oct 2007 17:01:51 +1200, you wrote: No, wish it was that simple. Actually, what's not happening

Re: [DUG] POST from a Delphi win32 app

2007-10-03 Thread David Moorhouse
Hi Steven Sounds like the perfect job for the Indy IdHTTP component. Just call its POST method and the html content will be returned as a string which you can parse to extract what you need. HTH D On Thu, 4 Oct 2007 13:31:20 +1300, you wrote: Hi all, I need pointing in the

Re: [DUG] Screen sizes :-)

2007-09-25 Thread David Moorhouse
My main dev set up is 24 at 1600X1200 with a secondary 17 monitor at 1024X1280 (yes sideways !!) Laptops are 14.1 at 1400 X 1050 and 15 at 1600X1200 With D2007 it is _impossible_ to be productive with less than 1280 across. 1920 allows addins like MMX to be docked. And the price of 24 monitors

Re: [DUG] Source Control - Sharing files between projects

2007-09-25 Thread David Moorhouse
On Wed, 26 Sep 2007 10:12:11 +1200, you wrote: snip 2. Most development companies must have similar shared source files. How do you structure your projects and source files? (Note: I am talking about source files used by projects here, not files which are compiled into VCL packages) Use a

OT: Re: [DUG] Screen sizes :-)

2007-09-25 Thread David Moorhouse
On Wed, 26 Sep 2007 11:59:14 +1200, you wrote: snip where we then pay the Chinese (and other countries producing these) more money as carbon tax for them to produce even more greenhouse gas than we do. We also sell some of them our coal that is supposedly too ungreen for us to use. Agreed -

Re: [DUG] Salaries in NZ?

2007-09-13 Thread David Moorhouse
And demographia is affiliated with well known property speculator Hugh Pavletich, doing his best to increase the urban sprawl of Chch. Cheers D On Fri, 14 Sep 2007 13:37:43 +1200, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alister == Alister Christie [EMAIL PROTECTED] writes:

Re: [DUG] Subversion users? Anybody used Devrace Athlant sourcecontrol expert?

2007-09-11 Thread David Moorhouse
I'll second Myles' opinion. The TortoiseSVN can be used from any Windows file shell such as the Windows Explorer or straight from Delphi's File Browser. HTH D On Wed, 12 Sep 2007 11:18:37 +1200, you wrote: We only use TortoiseSVN via explorer. In fact I have come to prefer this, rather than

Re: [DUG] D2007 - Position of Controls

2007-09-04 Thread David Moorhouse
Edit | Lock Controls HTH D On Wed, 05 Sep 2007 09:10:43 +1200, you wrote: snip Isnt there a form property to lock down control positions ? ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin:

Re: [DUG] Delphi's Object Inspector. Finding a property in D2007

2007-09-04 Thread David Moorhouse
Hi Steve Right click the OI, select Arrange | By Name HTH D On Wed, 5 Sep 2007 09:54:48 +1200, you wrote: snip Is there a way to tell Delphi 2007 to list properties in alphabetical order where I can find them quickly again? Steve ___ NZ

Re: [DUG] TDBEDIT funnies

2007-08-29 Thread David Moorhouse
A possible work around is IsModified := DbEdit1.Modified and DataSet1.Modified; I suggest you file a QC report. HTH D On Thu, 30 Aug 2007 16:25:57 +1200, you wrote: Ok, found the full symptom. Its definitely in D7 and D2007 and its a basic functionality failure. Once the modified is set

Re: [DUG] Indy Smtp and XTRA

2007-08-26 Thread David Moorhouse
Xtra were using port 25. I've another support customer that has switched away from xtra due to the hassles of last weeeknd. Wonder how many they lost ! Cheers D On Mon, 27 Aug 2007 08:14:47 +1200, you wrote: I don't know about Xtra, but ISPs sometimes uses non-standard ports for SMTP sending

Re: [DUG] Indy Smtp and XTRA

2007-08-26 Thread David Moorhouse
Actrix or Orcon have good service with reasonable prices. HTH D On Mon, 27 Aug 2007 10:03:17 +1200, you wrote: As well as changing to port 465 and using SSL, you also need to change your outbound server from smtp.xtra.co.nz to send.xtra.co.nz. If you don't switch servers, some of the email

Re: [DUG] Question

2007-08-12 Thread David Moorhouse
Have you set AutoSessionName to True. This is required for multi threaded apps. HTH D On Fri, 10 Aug 2007 13:54:42 +0530, you wrote: Hi, I have written a web service using Delphi 2005, using BDE and Oracle 9i as a backend database (running on Win XP). I have a TSOAPDataModule. It is an

Re: [DUG] TIdPeerThread.BeforeRun

2007-08-06 Thread David Moorhouse
Hi Leigh Post this one to the Indy NG. Remy will have you sorted in short order. Cheers D On Tue, 7 Aug 2007 10:13:50 +1200, you wrote: Good morning, I am using indy 9.0.18 to in a tcp client/server application. Here is the code which I have trouble in IdTCPServer.pas procedure

Re: [DUG] basic question

2007-07-25 Thread David Moorhouse
AnInstance := TAnObject.Create; if that's not a class method I'm not sure what is ;) D On Wed, 25 Jul 2007 21:33:25 +1200, you wrote: Sean Thanks, I grovel corrected :-), Still little use with no data, ie Data + Algorithms = Programs N Class methods have been around for years, explicitly.

Re: [DUG] basic question

2007-07-24 Thread David Moorhouse
The Delphi compiler creates an implicit parameter to Self and places it before the other params to the method. Take a look at the TMethod class to see how this works and can be used successfully to redirect code and data. The code pointer is share by all instances of the object and exists even

Re: [DUG] D 2007

2007-07-19 Thread David Moorhouse
Use the QC client that shipped with D2007. (Tools|QC) Project: Delphi Version: 11 (D2007) QC client version 1.0.1.21 HTH D On Fri, 20 Jul 2007 09:44:34 +1200, you wrote: I just tried to report my problem to Quality Central. I can not find a suitable area. Where the heck is D2007 ? I

Re: [DUG] D2007 - Where's the ActiveX components Gone?

2007-07-17 Thread David Moorhouse
Hi Steve You can re import the ocx (c:\winnt\system32\vcf132.ocx ??) file and reregister it. Use the Component | Import Component menu option and follow the wizard. HTH D On Wed, 18 Jul 2007 09:35:42 +1200, you wrote: Good Morning All, I'm upgrading an old D7 program that used the

Re: [DUG] Anyone using DWs script components ?

2007-06-21 Thread David Moorhouse
Thanks for the feedback. There's also some interesting posts on scripting by Allen Bauer at http://blogs.codegear.com/abauer/archive/2007/06/13/36013.aspx and http://blogs.codegear.com/abauer/archive/2007/06/14/36043.aspx D On Thu, 21 Jun 2007 22:08:34 +1200, you wrote: We are using them, but

[DUG] Anyone using DWs script components ?

2007-06-19 Thread David Moorhouse
Is anyone using the DWS scripting components (http://sourceforge.net/projects/dws/) with D2007 ? There appears to be some changes to the SynEdit components that are incompatible . Cheers D ___ NZ Borland Developers Group - Delphi mailing list Post: