Re: [DUG] HEX to decimal

2011-08-04 Thread Todd Martin
edit2.text := IntToStr(StrToInt('$' + sRaw)); On Thu, Aug 4, 2011 at 5:50 PM, Marshland Engineering marshl...@marshland.co.nz wrote: ** I cannot get the decimal equivalent of the number sent from my micro in Delphi !!! I am running and ATmega (micro) and it sends out a hex number

[DUG] Assembler

2010-09-22 Thread Todd Martin
Hi The following code appears in Grids.pas { Jump to TSparsePointerArray.ForAll so that it looks like it was called from our caller, so that the BP trick works. } function TSparseList.ForAll(ApplyFunction: Pointer {TSPAApply}): Integer; assembler; asm MOV

Re: [DUG] Icon

2010-07-20 Thread Todd Martin
Why not just use Gimp? I think it disappeared in later Delphi, I use any of IrfanView, PhotoFiltre, Paint.Net - all freeware - Irfanview is a converter and viewer, the other two are excellent image editors and convert too. What do others use? John

Re: [DUG] unit source code size

2010-07-04 Thread Todd Martin
It sounds like there is far too much coupling between your classes, if that is the case. I am constantly refactoring code, but sometimes the form unit just grows bigger and bigger. Regards Leigh -Original Message- From: delphi-boun...@delphi.org.nz

Re: [DUG] unit source code size

2010-07-04 Thread Todd Martin
What do the columns represent in your business logic? Are you handling every event on every column? I am using topgrid. It needs to handle different logic based on which column tsGrid.CurrentCell.DataCol user keyed for KeyDown events. May I ask how to separate the logic to a class? Let's

Re: [DUG] Importing data from Excel

2010-05-27 Thread Todd Martin
Hi David Have you considered using TADOQuery/TADOTable with the Microsoft.Jet OLE DB provider or MS ODBC provider for Excel? http://delphi.about.com/od/database/l/aa090903a.htm Todd Has anyone used EMS Advanced Data Import VCL from SQL Manager.net to import excel data from a file without

Re: [DUG] Importing data from Excel

2010-05-27 Thread Todd Martin
it!? Cheers, David. -Original Message- From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Todd Martin Sent: Thursday, 27 May 2010 8:21 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Importing data from Excel Hi David

Re: [DUG] Remote debugging

2010-04-27 Thread Todd Martin
Hi Jeremy I'll ask the obvious. Did you compile the application with debugging info? Project - Options - Compiler Todd. I am setup remote debugging on a server so I can trace a problem, BUT, for some reason it doest stop on break points. I am using Delphi 2010. I have tried setting the

Re: [DUG] Script Engines for use with Delphi

2010-03-21 Thread Todd Martin
Hi Alistair PaxScript supports Basic, C, Pascal and Javascript scripts http://eco148-88394.innterhost.net/paxscript/ Todd. We're looking to integrate a scripting engine of some sort into a Delphi app. Possibilities are: 1) DelphiScript from RemObjects 2) Python for Delphi 3) TMS

Re: [DUG] Another reason for Delphi to move to MultiPlatforms

2009-10-20 Thread Todd Martin
Hi Jolyon The UI layer may need to be specific to the supported platform, but hopefully the business logic will be portable. Yep, which is why I think a single-source cross platform *V*CLX is a pipe-dream. Haven't FPC/Lazarus already achieved this? I would be more excited about

Re: [DUG] Presentation in Christchurch - any other meetings in Chch?

2009-10-14 Thread Todd Martin
but its my guess likely in 5 years netbooks/laptops and mobile and phone OS will largely kill desktop PCs and in time likely Windows too, as there is not much sign they will be the leading candidate for mobile devices in 5 years. Hence the more cross platform and new UI (read touchscreen)

Re: [DUG] Image manipulation

2009-10-13 Thread Todd Martin
Hi Robert We want to do some basic image manipulation. Specifically the following 1) open and dipslay Gif, jpg, and png image formats. 2) Resize the above file format 3) Save file back in resized format. Why not use TPicture/TGraphic with pngimage (pngdelphi.sourceforge.net) and gifimage

Re: [DUG] Auckland Event

2009-10-13 Thread Todd Martin
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 traffic on the way home. That way a major delay is not a show stopper and far less stressful. While I’m

[DUG] Free Pascal

2009-09-23 Thread Todd Martin
Hi Jolyon One thing I dislike about Lazarus, is the lack of visual form inheritance. The FreePascal compiler itself, seems perfectly ok. Todd. For the uninitiated: A FreePascal license costs $0. Annual upgrades cost a further $0 per annum for minor updates and $0 for major updates. Source

Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-21 Thread Todd Martin
Hi Kyley it benefits none of us if their pricing is not sustainable.. The key figure is not price, but price x sales. You might be prepared to pay more, but if increasing the price drops the sales to a trickle it will benefit no one. I'd be inclined to think that the Upgrade is too low, and

Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-20 Thread Todd Martin
Hi Richard no.. I'm sure they aspire to more than that because they know that their laziness or accident will cause lives.. Just like an Engineer, or Architect knows that mistakes will cost lives.. IMHO there are NO PROFESSIONAL SOFTWARE DEVELOPERS.. its not a profession yet..

Re: [DUG] Upgrade considerations

2009-09-20 Thread Todd Martin
Hi Rodney Q3 - The NZ price from Developers Inc. web page seems a bit higher when converted (possibly old exchange rate?). Should I buy from US web site or should I contact Developer Inc. to get the updated price? What are the differences? I think you need a US credit card to purchase from

Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-20 Thread Todd Martin
Hi Malcolm It seems to me that a sliding scale on the upgrade price would be the most universally accepted solution. Customers who upgrade more frequently would benefit, while those who don't are not simply discarded. Todd. Hi all, I’ve just read through quite a few of the messages in

Re: [DUG] Faxs

2009-09-17 Thread Todd Martin
Hi Jeremy Haven't your people heard of encrypted email? Hi All I seem to remember that there was an AT command that when you sent a fax via a modem, it sent out the fax handshaking signal. At the moment, when I send a fax via the modem to a real fax (that I had to bring up from the

Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-17 Thread Todd Martin
I guess that's why GC doesn't appeal *to*me*... I appreciate the power and flexibility that manual memory management provides but at the same time I'm not always forced to put up with the drudgery that that entails. So GC offers me nothing much that I don't already have but takes away

Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-16 Thread Todd Martin
Hi Steve That is an absolute outrage. Anyone worth their salt would never sign such a contract. Todd. This is fairly common over here for programmers to have to sign away all applications programmed at home. Steve Peacocke On Thu, Sep 17, 2009 at 8:20 AM, Leigh Wanstead

Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-16 Thread Todd Martin
Peacocke On Thu, Sep 17, 2009 at 8:57 AM, Todd Martin todd.martin.nz http://todd.martin.nz@gmail.com http://gmail.com wrote: Hi Steve That is an absolute outrage. Anyone worth their salt would never sign such a contract. Todd

Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-16 Thread Todd Martin
Hi Kyley John, whenever I do that.. And I do it very often.. I first tell them, and get approval and agreement that I own the code.. Most companies agree.. They like to make efficient use of time.. but in doing so they have to have a royalty free use of the code given. Do you use a

Re: [DUG] A change in upgrade policy coming from Embarcadero

2009-09-16 Thread Todd Martin
Every field in a Python class is publicly accessible. That is OO hell! When they fix that I'll take notice. Personally I am waiting for Python done right. Eg Fast, with decent UI libraries and designers. Regards Sean Cross CIO ___

Re: [DUG] Exporting to excel autoformat

2009-09-14 Thread Todd Martin
Hi Stephen Have you tried adding a single quote as the first character? I have already tried this, and yes that works, but now I have double quote around all my numbers which I do not want. ___ NZ Borland Developers Group - Delphi mailing list Post:

Re: [DUG] CPU usage

2009-08-19 Thread Todd Martin
Isn't that what a low priority thread is used for? Is there a simple way to find simple measure of current CPU usage? Reason - have some housekeeping tasks that I would prefer to not run if the computer is loaded at the moment, so an easy way to check before starting it would be great.

Re: [DUG] Open Office automation

2009-07-14 Thread Todd Martin
Gary T. Benner wrote: HI all, Does anyone have any experience with creating an automation interface to Open Office? I'd be interested too. You can use COM automation for Open Office in Windows, or there is uno_bridge for Delphi, which should compile in Free Pascal as well but I haven't had

Re: [DUG] Embarcadero article

2009-06-16 Thread Todd Martin
What I want to know is, when are Embarcadero going to support interfaces on TObject? Todd. Personally I don't care much about 64 bit. Cross platform would be nice, but realistically we have 1 or 2 inquiries out of hundreds regarding support for mac or linux - no one has ever asked me

Re: [DUG] Embarcadero article

2009-06-16 Thread Todd Martin
Hi Sean I agree with you, GC is good to have at times. What I am suggesting would allow Delphi to switch on GC, for those that want it, or off, for those that don't. Or even better, provide GC (or not) for a subset of registered classes. Can anyone complain about that? If Delphi provided a

Re: [DUG] Translating WinAPI C++ header - any suggestions?

2009-06-16 Thread Todd Martin
Hi Conor Check out this link http://rvelthuis.de/articles/articles-convert.html Have you considered using h2pas in Free Pascal? or SWIG for Delphi http://www.wmhelp.com/download/swig-delphi.rar Todd. I'm needing to call a Windows API function introduced in Vista from my Delphi app, but I

Re: [DUG] Embarcadero article

2009-06-15 Thread Todd Martin
I don't see a problem with 3 distinct VCLs, one for each platform, provide they all conform to the same interfaces (protected, public and published) and wrap any platform specific stuff like Windows messaging inside the controls. Using a factory to create the VCL components on a form would allow

Re: [DUG] Embarcadero article

2009-06-15 Thread Todd Martin
I don't see a problem with 3 distinct VCLs, one for each platform, provide they all conform to the same interfaces (protected, public and published) and wrap any platform specific stuff like Windows messaging inside the controls. Using a factory to create the VCL components on a form would allow

Re: [DUG] Website presentation

2009-04-05 Thread Todd Martin
Hi Gary Thanks for the tip about the web developer toolbar. I use Firefox and Firebug, but the toolbar is a nice extra. Todd. This topic is best covered by the css tutorials at www.sitepoint.com. You will need to have a graphics tool such as photoshop, fireworks, gimp etc to produce the

Re: [DUG] Translations

2009-02-16 Thread Todd Martin
Hi Stefan Shouldn't this be =Sind Sie sicher, dass Sie diese Datei bearbeiten wollen? Which Google translates as Are you sure you want to edit this file? However, I agree, technical terms can be translated horribly. Todd I expect this particular sentence Are you sure you want to delete this

Re: [DUG] Delphi on Linux question

2009-02-09 Thread Todd Martin
Hi Robert I don't think you can use DBExpress with Free Pascal. If you switch to ZEOS database components, it should compile in both Delphi and Lazarus. Todd. Hi We foolishly created a Windows / Delphi 2007 SOAP service to a MYSQL DB. We tested it (using Windows and Apache2) and

Re: [DUG] Adding button to form

2008-10-13 Thread Todd Martin
Are you using form inheritance? Hi Try copying a button on the panel that does show, does it show? (there might be code hiding components based on something obscure - like tag value)? What about changing the name of the new button to that of the old (rename old) does it work now. Must

Re: [DUG] iPhone

2008-08-31 Thread Todd Martin
Hmmm. I'm inclined to agree with this. Having spent a lot of time lately compiling and installing open source engineering applications on Linux, and hating C++ for every minute of it (don't even get me started on Python), I can't help but think Embarcadero could exploit a huge opportunity by

Re: [DUG] anyone need work? Fwd: Delphi Contract Role

2008-08-29 Thread Todd Martin
Is that a google translation? Hi Well it is right in India Delphi prgramer are very less. I lived in Mumbai and i strated my delphi career from it before moving to London. But well i can say bangalore is the palce in india where delphi programer are lot and good quality one i can say

Re: [DUG] Images and MS SQL Server

2008-08-18 Thread Todd Martin
I don't see why not. You probably just need to add 'jpeg' to your uses clause and TPicture.RegisterFileFormat('jpg', 'JPeg Image', TBitmap); TPicture.RegisterFileFormat('jpeg', 'JPeg Image', TBitmap); in the initialization section. You should be able to load a jpeg from stream after

Re: [DUG] Interfaces

2008-08-07 Thread Todd Martin
That is exactly right, but why would you want to, when ISpeakable supports makeNoise() anyway? You can still pass your TPerson object into a method(AObject : INoiseable) without problems. Todd. However if I change my TPerson to the following TPerson = class(TInterfacedObject, ISpeakable,

Re: [DUG] Interfaces

2008-08-06 Thread Todd Martin
Hi Alister Are you implementing IXMLResidentialType via delegation? Todd. I'm having some fun with interfaces I have two interfaces IXMLResidentialType and IAuctionable. I have a class which implements these two interfaces TXMLResidentialType = class(TXMLNode, IXMLResidentialType,

Re: [DUG] OO Programming

2008-07-29 Thread Todd Martin
Well I would say a Software Architect must be an order of magnitude higher than a Software Engineer, given the lowly status of engineering in NZ. Todd. Steve As my father was fond of saying (When we agreed ) Great minds think alike followed by Fools seldom differ Thanks for clarifying

Re: [DUG] Delphi 3 Upgrade

2008-05-29 Thread Todd Martin
A few years ago I purchased a copy of Delphi 6 Pro from someone in the US and had no problems re-registering it with Borland. Paul A Norman wrote: Dear Richard, You have posted here in past years that licenses can be arranged to be transfered if it is clear they have not been used for

Re: [DUG] Delphi 3 Upgrade

2008-05-27 Thread Todd Martin
Why can't you re-compile the DCLDB30.BPL as a Delphi 5 package? Todd. Hi All, Unfortunately the answer is no. Where can I go to get a professional version at a decent price? TradeMe? Must be almost a give-away by now. Any ideas? Thanks Colin - Original Message - From:

Re: [DUG] DBX4 drivers for firebird

2008-05-19 Thread Todd Martin
Have you looked at ZEOSlib database objects? Todd. Hi all, Our company has just recently ported from Delphi 7 to Delphi 2007. When we try to insert a blob into a firebird table using DBX4 (dbexpress) we were getting the following message Incorrect values within SQLDA structure. Their are

Re: [DUG] Delphi ftp server component

2008-04-27 Thread Todd Martin
Ok. I have to ask. What is wrong with the Indy ftp server? Todd. Good morning, Can anyone recommend a open source/free Delphi ftp server component except Indy? TIA Have a nice day Regards Leigh ___ NZ Borland Developers Group - Delphi mailing

Re: [DUG] List Issues

2008-04-22 Thread Todd Martin
Likewise. I am in the same boat. Weird eh. Ross Levis wrote: I received this today (Wednesday) at 9:38am along with a gaggle of other messages from the group. They all seem to accumulate somewhere for a day or so and then I get all of them in one go. This is not the case with my usual

Re: [DUG] Interpreting HL7

2007-12-12 Thread Todd Martin
Hmmm. HL7 is pretty extensive. Have a look at www.interfaceware.com Todd. On Thu, 13 Dec 2007 15:49, Rohit Gupta wrote: I have to interpret HL7 packets and merge them into our database. Has anyone any experience with them or can they recommend a translation component. Not that its

Re: [DUG] Skins in delphi

2007-11-28 Thread Todd Martin
Have you tried googling for +delphi +themes Todd. On Wed, 28 Nov 2007 18:44, Vikas... wrote: Hi, i am developing an application in delphi 5, i want to add skins feature to it. Can anyone suggest me any open source tool or free component to wortk with Delphi 5. Or is there is any

Re: [DUG] Salaries in NZ?

2007-09-13 Thread Todd Martin
Vote Labour and I'm sure they'll find a way to make it happen! On Fri, 14 Sep 2007 13:21, Jeremy North wrote: Leigh Wanstead wrote: So the point is that does not make much difference by earning a lot as salary earner. Sorry about little off topic ;-) Huh? I think it certainly helps

[DUG] Subversion Question

2007-09-11 Thread Todd Martin
While we're on the subject of Subversion, has anyone discovered a way to find a specific change in the repository. eg. Let's say I remember adding/removing a particular function at some point in the past, how do I find the source file and revision number when it was first added/removed? The

Re: [DUG] Delphi - why the need for dcus

2007-09-09 Thread Todd Martin
It should not need the dcu's , if your project uses the BPL as a runtime library. They are only needed, when you want to compile the library directly into your project exe. I can only suppose your BPLs use a common pas file, which has had some changes since one or more of your BPLs were

Re: [DUG] TPageControl Interesting Observation D2007

2007-08-27 Thread Todd Martin
Why not just use a TTabControl and instantiate each page as a frame embedded in a panel, when the user changes tab? Todd. On Tue, 28 Aug 2007 11:46, Steve Peacocke wrote: Searching the newsgroups and web came up with a blank on this one so I thought I'd throw it to you people to see if any of

Re: [DUG] tMemo, Stop updating

2007-07-31 Thread Todd Martin
Yes it will work! TMemo uses TMemoStrings On Wed, 01 Aug 2007 16:20, Steve Peacocke wrote: No, Thanks, but sorry that won't work. BeginUpdate will be for Data enabled components. This is a simple tmemo. Thanks anyway Steve On 01/08/07, Neven MacEwan [EMAIL PROTECTED] wrote: Steve

Re: [DUG] basic question

2007-07-25 Thread Todd Martin
What do you mean Nevan? You can call TShowOff.Static1() from way back in Delphi, if it is declared as Chee Wee Chua pointed out. class variables were introduced later. Todd. On Wed, 25 Jul 2007 20:18, Neven MacEwan wrote: Dennis Class methods have been around since Delphi 2. Where have

Re: [DUG] PHP4Delphi

2007-07-25 Thread Todd Martin
I have had a quite an extensive look through the VCL4PHP code and, although I like the concept, I can't say I'm that impressed with the implementation. There are a number of silly assumptions. The first that springs to mind is the idea that a web page should only contain one form. What a

Re: [DUG] Find the currently executing source line

2007-07-15 Thread Todd Martin
Hi Steve You're probably calling a function in the Windows.pas unit (unless you have specifically introduced other units which wrap API functions). I suggest you search your source code for all occurrences of Windows in the uses clause, and figure out what functions are being called in each

Re: [DUG] firebird query parameters behaving oddly

2007-07-05 Thread Todd Martin
The date string is probably not being escaped correctly. Perhaps try ParamByName(‘from’).AsDate = FromDat; ParamByName(‘to).AsDate = ToDat; Tracey wrote: Hi all I have in my code many areas where queries are “strung” together then executed. These queries are parameterized. However I am

Re: [DUG] Problem with minimize button.

2007-06-26 Thread Todd Martin
Perhaps what is more surprising is why a Normal window appears when you start the app with its run property set to minimised. On Wed, 27 Jun 2007 14:53, Phil Scadden wrote: Might have breakthrough. If you start the program from a shortcut and you set the run property to minimised instead of

Re: [DUG] Firebird 1.5 - unavailable database

2007-06-21 Thread Todd Martin
Hi Steve Download FlameRobin (www.flamerobin.org) and use that to setup/test your database connections. Todd. Steve Peacocke wrote: Gidday all, I've successfully created my database on my local drive. After hours and hours of real frustration, I am in need of assistance on this. Normally

Re: [DUG] Using mdi forms in dunit test

2007-05-20 Thread Todd Martin
Did you create a parent MDI form first? On Mon, 21 May 2007 11:47, Sean Cross wrote: Has anyone managed to use mdi forms in a unit test? I keep getting the error Cannot create form. NO MDI forms are currently active. I have tried creating and showing an mdi form first without any luck. I

Re: [DUG] Memo files Lines

2007-04-19 Thread Todd Martin
You'd probably be better off to use a non-visual object (TStringList) to do this, since it sounds like you don't need to see the G-Code. see TStringList.LoadFromFile() Todd. Marshland Engineering wrote: Hi I'm just starting with Delphi. I need to read a text file (G-Code for CNC) and write

Re: [DUG]: Hash

2003-10-22 Thread Todd Martin
Do you have Delphi 6? See TStringHash.HashOf() Todd. - Original Message - From: Ross Levis To: Multiple recipients of list delphi Sent: Thursday, October 23, 2003 1:58 PM Subject: [DUG]: Hash Does anyone have a simple hash routine whichtakes a string

Re: [DUG]: IXMLDocument

2003-10-07 Thread Todd Martin
Hi James Its pretty straightforward really. Import the MSXML type library into your project and do something like the following function GetRootNode(AText : String) : IXMLDOMNode; var Document : IXMLDOMDocument; begin Document := CoDOMDocument.Create; Document.LoadXML(AText); Result

Re: [DUG]: Grid with variable sized rows

2003-09-24 Thread Todd Martin
Hi Samuel Why not just set the RowHeight property in the OnDrawCell event of a TStringGrid or TDrawGrid? Cheers, Todd. - Original Message - From: Allan, Samuel [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Friday, September 19, 2003 10:35 AM Subject:

Re: [DUG]: cpu load

2003-09-14 Thread Todd Martin
Hi Alistair. Are you running Windows XP? You can schedule a task to only start provided the computer has been idle for a specified amount of time. Todd. - Original Message - From: Alistair George [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Monday,

Re: Re[2]: [DUG]: cpu load

2003-09-14 Thread Todd Martin
Sorry. I was referring to windows scheduler. Not sure if there's an API call. - Original Message - From: Alistair George [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Monday, September 15, 2003 10:23 AM Subject: Re[2]: [DUG]: cpu load Hello Todd, Is

Re: [DUG]: TStringList or Memory error.

2003-09-10 Thread Todd Martin
Hi David How many items are you adding to the list before it fails? Are you exceeding the capacity of the list? Are you overwriting the memory address of you string list somewhere else using pointer variables? Do you have range checking switched on in Project - Options - Compiler tab Its not

Re: [DUG]: TStringList or Memory error.

2003-09-10 Thread Todd Martin
Hi David At what point do you free the list? At the end of Execute() or in an OnTerminate() event handler? Todd. - Original Message - From: David McNeill [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Thursday, September 11, 2003 4:01 PM Subject: RE:

Re: [DUG]: ClientRect

2003-09-08 Thread Todd Martin
Hi Nevan You can use the TControl.Width and TControl.Height properties to create a rectangle bounding the whole form. Todd. - Original Message - From: Neven MacEwan [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 1:36 PM

Re: [DUG]: Button Caption

2003-09-01 Thread Todd Martin
Call Refresh() Todd. - Original Message - From: Ross Levis [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Monday, September 01, 2003 4:37 PM Subject: RE: [DUG]: Button Caption I've created a NewButton component for the IDE pallete with an Alignment

Re: [DUG]: TDBGid - removing gridlines.

2003-08-28 Thread Todd Martin
Hi James It's not that obvious. For some reason TDBCustomGrid introduces new Options, instead of exposing the underlying Options in TCustomGrid. Have a look at TDBCustomGrid.SetOptions(). You'll see that removing column lines, removes both the lines in the grid area and the fixed area. The only

Re: [DUG]: OleVairant array

2003-08-07 Thread Todd Martin
Hi Phil Assigning the OleVariant to a variable of type Variant should convert it automatically. Then you can just use TVarData to determing if you're dealing with an array. Todd. - Original Message - From: Phil Middlemiss [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL

Re: [DUG]: Some Ideas?

2003-07-30 Thread Todd Martin
Hi Jeremy Can I assume from this that you're planning to send a link back to the web browser which downloads the encrypted file from your server. Or are you planning to echo the file contents back to the client browser? If the former, why not create a client/sever application using TCP/IP

Re: [DUG]: INI files

2003-07-27 Thread Todd Martin
Hi Vaughan Use TMemIniFile function GetIniFileFromStream(AStream : TStream) : TCustomIniFile var List: TStringList; begin Result := TMemIniFile.Create(''); List := TStringList.Create; try List.LoadFromStream(AStream); Result.SetStrings(List); finally List.Free;

[DUG]: Debugging COM DLL

2003-07-22 Thread Todd Martin
Hi All I've tried debugging my COM inprocess server object according to the Delphi help (ie. load COM library project, set host application in run parameters and run), but as soon as the host application (Excel) loads I lose the blue dots in the my COM server app, so I can't debug it. Anyone got

Re: [DUG]: readln?

2003-07-22 Thread Todd Martin
Hi Chris The problem is your string variable declaration. The following won't work, because all characters in the line will be read into the first string (unlimited length) var Text1, Text2, Text3 : String; begin readln(file,Text1,Text2,Text3); end; Try this var Text1,Text3 : string[10];

Re: Re: [DUG]: Any COM Experts

2003-07-21 Thread Todd Martin
-Original Message- From: Todd Martin [mailto:[EMAIL PROTECTED] Sent: Monday, 21 July 2003 3:41 p.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Any COM Experts Thanks Stephen I've got the object instantiating okay now. Its been a while since I used VBA. Now I have another

[DUG]: Any COM Experts

2003-07-20 Thread Todd Martin
Hi all I've created a COM server object (*.dll) which I want to use in an Excel. So I was trying to use VBA CreateObject() with the COM interface GUID as the string parameter, but that doesn't work. Do I need to creat an Automation Server object instead and somehow register a class name for the

Re: [DUG]: Any COM Experts

2003-07-20 Thread Todd Martin
box to select your library You should now be able to browse your objects and instantiate them natively in Excel using their real names. Dim x As MyLibrary.MyClass Set x = New MyLibrary.MyClass -Original Message- From: Todd Martin [mailto:[EMAIL PROTECTED] Sent: Monday, 21 July 2003 2

Re: [DUG]: [Q] Stream.ReadComponent, Stream.WriteComponent problem....

2003-07-13 Thread Todd Martin
Hi Donovan Your published properties Boo and Data don't have a write method, so they can't be set from the stream. Todd - Original Message - From: Donovan J. Edye [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Thursday, July 10, 2003 6:59 PM Subject:

Re: [DUG]: size of object

2003-07-13 Thread Todd Martin
Hi Neven There's always TObject.InstanceSize(), but I'm not sure how it drills down, when you've got contained objects. I imagine it just returns a 4 byte value for any contained object/interface references. Todd. - Original Message - From: vss [EMAIL PROTECTED] To: Multiple recipients

Re: [DUG]: TChart Set LeftAxis Labels

2003-07-09 Thread Todd Martin
Hi Tracey You're passing a constant string _expression_ ('any old string') toGetAxisLabel() which expects a variable. Try this var AxisLabel : String; begin GetAxisLabel(LeftAxis, HorizBarSeries, 1,AxisLabel); ShowMessage('The label axis is ' + AxisLabel); end; Todd. - Original

Re: [DUG]: CheckBoxes

2003-06-23 Thread Todd Martin
Hi Paul Why not just temporarily set the OnClick event to nil, then reassign it afterchecking the box,like so: TempEventHolder := chkBox.OnClick; chkBox.OnClick := nil; chkBox.Checked := True; //or False chkBox.OnClick := TempEventHolder; - Original Message - From: Paul

Re: [DUG]: Interface Inheritance

2003-06-16 Thread Todd Martin
, if you do: First := Second as IFirstDescendent you will get an exception EIntfCastError. This is because the as operator calls QueryInterface on Second, and TNewClass does not support IFirstInterface. Regards, Dennis. - Original Message - From: Todd Martin [EMAIL PROTECTED

Re: [DUG]: Interface Inheritance

2003-06-15 Thread Todd Martin
Hi Guys. Thanks for all the feedback. I didn't realise it would get so much response. In the end I decided to go with the following : IFirstDescendant = interface(IInterface); ISecondDescendant = interface(IFirstDescendant); TNewClass = class(TInterfacedObject,IFirstDescendant

[DUG]: Interface Inheritance

2003-06-12 Thread Todd Martin
Hi Does anyone know if there's a way to test for interface inheritance? For example IFirstDescendant = interface(IInterface); ISecondDescendant = interface(IFirstDescendant); TNewClass = class(TInterfacedObject,ISecondDescendant); NewObject = TNewClass.Create; is there a way to see whether

Re: [DUG]: Application Specific Cursors

2003-06-11 Thread Todd Martin
Good question. I tried the same thing without success also. So I'm interested in the solution too. Todd. - Original Message - From: David O'Brien [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 12:14 PM Subject: [DUG]: Application

Re: [DUG]: Delphi 6 on Windows XP

2003-06-06 Thread Todd Martin
PROTECTED] Sent: Friday, June 06, 2003 7:25 AM Subject: RE: [DUG]: Delphi 6 on Windows XP Have you installed update packs 1 2? I had a problem with the debugger until I installed the update packs. Cheers Dave Jollie Tower NZ IT 09 368 4259 -Original Message- From: Todd Martin

Re: Re: [DUG]: Delphi 6 on Windows XP

2003-06-06 Thread Todd Martin
for the local machine? Dave. -Original Message- From: Todd Martin [mailto:[EMAIL PROTECTED] Sent: Friday, 6 June 2003 10:07 a.m. To: Multiple recipients of list delphi Subject: Re: [DUG]: Delphi 6 on Windows XP Hi Dave I already installed the update packs. I'm wondering if my problems

[DUG]: Delphi 6 on Windows XP

2003-06-05 Thread Todd Martin
Hi All Has anyone out there had problems running Delphi 6 on Windows XP? It was working okay for the last couple of months, when I started getting access violations in vcl60.bpl and vclx60.bpl when trying to open projects or create new applications? Any suggestions? I'm not sure if it's related

Re: [DUG]: Modulizing Apps. with Packages

2003-06-03 Thread Todd Martin
Title: Message Hi Jeremy After selecting "compile with runtime packages," just delete everything in the list, except the packages you actually want to use. In other words, only those listed will used as"runtime packages" and will need to be supplied with your EXE. The rest (eg the VCL,

Re: [DUG]: Call Stack and Watchs

2003-05-29 Thread Todd Martin
and the watch screen is out at 1200 or 1300 something) Try and set the res as high as poss and activate the call stack - if it is out at the edges drag it back and reset the res ... RegardsPaul McKenzieAnalyst ProgrammerSMSS Ltd. - Original Message - From: Todd

[DUG]: Call stack etc

2003-05-29 Thread Todd Martin
Okay another dumb question. In delphi 5 I used to be able to dock the call stack/watch/messages windows so that they appeared in a tabsheet style at the bottom of the code editor. Now for some reason I can only get them to dock above/besideeach other in delphi 6. Is this something Borland

Re: [DUG]: Lost Inherited functionality - forms:

2003-05-27 Thread Todd Martin
Title: Lost Inherited functionality - forms: Hi James It sounds like double clicking the OK button reassigns the OnClick event for the button and removes a reference to the action. After fiddling with the button, check the object inspector to make sureitsOnClickevent is empty. Todd.

[DUG]: Call Stack and Watchs

2003-05-27 Thread Todd Martin
Title: ADO components (D5) Hi I've got Delphi 6 Pro running on Windows XP and for some reason I cannot get the call stack or watch windows to appear when debugging (ie. ctrl+alt+s) doesn't show a thing. The window is listed under the Delphi menu item "Window", but its nowhere to be seen.

Re: [DUG]: Call Stack and Watchs

2003-05-27 Thread Todd Martin
Hi Jeremy That made no difference. Did you mean the project.dsk or delphi32.dsk? I deleted both, but still no joy. Todd. - Original Message - From: Jeremy North [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 3:24 PM Subject: Re:

Re: [DUG]: Testing Installed components

2003-04-06 Thread Todd Martin
I finally got to the bottom of this. The delphi help isn't entirely useless, but somewhat confusing. 1 From the Delphi IDE menu select Project|Options|and on the Directories/Conditionals page, set the Debug Source Path to the component's source file. 2 Then select Tools|Debugger Options. On the

[DUG]: DateTimePicker for Linux

2003-04-01 Thread Todd Martin
Hi Does anyone know, if an equivalent control to TDateTimePicker exists for cross-platform development in D6. There doesn't appear to be a CLX reference to it in the Delphi help. Thanks Todd. --- New Zealand Delphi

Re: [DUG]: Case Insensitive POS

2003-04-01 Thread Todd Martin
You could make it more efficient by result := pos(SubStr,S); if result = 0 then result := pos(uppercase(SubStr),S); Todd - Original Message - From: Neven MacEwan [EMAIL PROTECTED] To: Multiple recipients of list delphi [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 4:48 PM Subject:

  1   2   >