Re: [DUG]: NT Services

2000-04-16 Thread Simon Mahony
Mark, check out http://www.activeplus.com/ They have cheap/free software here that turns any program into a service. We're using it here. With the exception of getting it to automatically restart (which works according to one of my co-workers) it works fine, even with a standard Delphi 5 app WITH

RE: [DUG]: NT Services

2000-04-16 Thread Myles Penlington
You first create a New - service application, then add one or several services to the service application. I ended up running my service in another thread, as I was using COM stuff and found this was the only way to initialise and finalise COM. This is because each service runs on a different

[DUG]: efficient code

2000-04-16 Thread james
Just wondering, for a caption that doesn't change very oftern which in more efficient. StateLabel.caption := 'Running'; OR IF StateLabel.Caption 'Running' then StateLabel.Caption := 'Running'; This second makes larger code hence larger exe hence more overhead but the first updates

RE: [DUG]: efficient code

2000-04-16 Thread Stacey Verner
TControl has the property Caption sefined as follows: property Caption: TCaption read GetText write SetText stored IsCaptionStored; The procedure SetText is defined as follows: procedure TControl.SetText(const Value: TCaption); begin if GetText Value then

RE: [DUG]: efficient code

2000-04-16 Thread Mark Derricutt
On Mon, 17 Apr 2000, Stacey Verner wrote: property Caption: TCaption read GetText write SetText stored IsCaptionStored; Whats this 'stored' keyword? I don't think I've seen it before? Is the IsCaptionStored a function? -- Mark Derricutt "People in prayer for me, everyone there for

RE: [DUG]: efficient code

2000-04-16 Thread Paul Heinz
Mark wrote: On Mon, 17 Apr 2000, Stacey Verner wrote: property Caption: TCaption read GetText write SetText stored IsCaptionStored; Whats this 'stored' keyword? I don't think I've seen it before? Is the IsCaptionStored a function? Yes. It's a private (or protected) method which

RE: [DUG]: efficient code

2000-04-16 Thread Myles Penlington
Yep your'e right. It can control if the caption will be stored when the component is streamed out. Hence if/will the property be set when the component is read back in. It's just a boolean function TRUE = Store the property vica versa. Actually the original code example was maybe faster in

[DUG]: TBitmap tagBITMAP

2000-04-16 Thread Paul Lowman
Help! I have a TImageList created at run time and loaded with bitmaps from a resource file. No problems. I now want to add a single bitmap as follows Var anImage : TBitmap; . ImageIndex := Glyphs.Add(anImage,Nil); ... this throw up an

Re: [DUG]: efficient code

2000-04-16 Thread Aaron Scott-Boddendijk
Just wondering, for a caption that doesn't change very oftern which in more efficient. StateLabel.caption := 'Running'; OR IF StateLabel.Caption 'Running' then StateLabel.Caption := 'Running'; There are 2 sides to this... 1. The cost of the assignment versus the cost of the

RE: [DUG]: efficient code

2000-04-16 Thread Dennis Chuah
The stored keyword specifies a method or boolean var name. This method / var specifies whether the property should be stored. The method must be prototyped as: function Methodname: Boolean; If the boolean value is True, the property is stored. Note that stored is a misnomer, because it also

[DUG]: TMIDASConnection and MS Proxy Client

2000-04-16 Thread alittle
Greetings All, I have the following scenario... A client application, which uses a Delphi 3 TMIDASConnection set to ctSockets, is trying to connect to a server via a Midas Sockets connection. This works fine until MS Proxy Client is installed onto the client machine. After a few moments

Re: [DUG]: TBitmap tagBITMAP

2000-04-16 Thread Paul Lowman
Carl Ta I've just found it ;-) Paul --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz

RE: [DUG]: TBitmap tagBITMAP

2000-04-16 Thread Dennis Chuah
Or declare anImage; as anImage : Graphics.TBitmap; Regards, Dennis. -Original Message- It's a problem with your uses clause in that module. The Windows unit defines "TBitmap = tagBitmap", so you need to have the Graphics unit appear after Windows. Cheers, Carl

RE: [DUG]: TMIDASConnection and MS Proxy Client

2000-04-16 Thread Dennis Chuah
No experience with MIDAS, but with the proxy client, you want to make sure: 1. That you can ping the server from the client (this is a basic test and one that you should do in most circumstances). Do not use the browsers (IE Netscape) because they bypass the proxy client. 2. If installing

Re: [DUG]: TMIDASConnection and MS Proxy Client

2000-04-16 Thread Dave
If the host machine is on the same network, try checking "Bypass Proxy server for local addresses" in the I.E LAN Settings on the Connections tab. If that doesn't work, try adding the I.P address of the host in the "Exceptions, Do not use proxy server for addresses beginning with" section.