RE: RE: RE: [DUG]: Execute and wait

2002-11-10 Thread Chris Milham
Haha, no problem :) Chris > -Original Message- > From: vss [mailto:vss@;vss.co.nz] > Sent: Monday, 11 November 2002 4:41 p.m. > To: Multiple recipients of list delphi > Subject: RE: RE: [DUG]: Execute and wait > > > sorry chris I take that back...it does...I should have just > pressed

RE: RE: RE: [DUG]: Execute and wait

2002-11-10 Thread Chris Milham
Hi, Have you tried running another app (eg. notepad) with the code? (obvious but worth asking) What OS are you using? Maybe there's an issue there. Maybe the game has smarts that stops people doing what you're trying to do ;) ?!? I think the curr dir suggestion that Corey mentioned is worth pursu

RE: RE: [DUG]: Execute and wait

2002-11-10 Thread vss
sorry chris I take that back...it does...I should have just pressed teh right button :) Jeremy -Original Message- From: "Chris Milham" <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Mon, 11 Nov 2002 15:59:07 +1300 Subject: RE: RE: [DUG]: Execute an

RE: RE: [DUG]: Execute and wait

2002-11-10 Thread vss
might have been a mailserver somewhere doing it. Anyway, your code does the same thinghmmm...weired. Jeremy -Original Message- From: "Chris Milham" <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Mon, 11 Nov 2002 15:59:07 +1300 Subject: RE: RE: [D

RE: RE: [DUG]: Execute and wait

2002-11-10 Thread Chris Milham
Hmm.. I don't know where those "3D"s came from :/ Just remove them all and you should be fine. Make sure you are using the windows unit. Chris > -Original Message- > From: vss [mailto:vss@;vss.co.nz] > Sent: Monday, 11 November 2002 3:44 p.m. > To: Multiple recipients of list delphi > Sub

RE: [DUG]: Execute and wait

2002-11-10 Thread vss
Hi Chris. I tried your code, but it failed here cb :=3D SizeOf(TStartupInfo); Jeremy -Original Message- From: "Chris Milham" <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Mon, 11 Nov 2002 15:13:44 +1300 Subject: RE: [DUG]: Execute and wait > Try t

Re: [DUG]: Best version control system?

2002-11-10 Thread Corey Murtagh
- Original Message - From: <[EMAIL PROTECTED]> Sent: Monday, November 11, 2002 2:55 PM Subject: RE: [DUG]: Best version control system? > Thanks for the comments. I'm having a play with FreeVCS and FTPVCS to see > what they're like. I'll let you know **my opinion** of which is the best.

Re: [DUG]: Execute and wait

2002-11-10 Thread Corey Murtagh
- Original Message - From: "vss" <[EMAIL PROTECTED]> Sent: Monday, November 11, 2002 3:07 PM Subject: [DUG]: Execute and wait > Hi All. > I have a bit of code that does an execute and waits for the app. to > close. > What I want to do is execute a game and know when its finished, BUT when

Re: [DUG]: Deletefile('D:\*.*');

2002-11-10 Thread Alister Christie
Try Procedure DeleteAllFilesInDirectory(const dir : string); var FileSpec : string; SearchRec : TSearchRec; begin if DirectoryExists(Dir) then begin FileSpec := IncludeTrailingBackSlash(Dir) + '*.*'; if FindFirst(FileSpec, faAnyFile, SearchRec) = 0 then begin repeat

RE: [DUG]: Execute and wait

2002-11-10 Thread Chris Milham
Try this one. I have just wrapped a version of "WinExecAndWait32". This one DEFINITELY waits correctly. HTH Chris procedure ExecuteProgram(sPath: string; bWait: Boolean); function WinExecAndWait32(Path: PChar; Visibility: Word; Timeout: DWORD): integer; var WaitResult: integer; S

[DUG]: Execute and wait

2002-11-10 Thread vss
Hi All. I have a bit of code that does an execute and waits for the app. to close. What I want to do is execute a game and know when its finished, BUT when I use my code, it starts to execute the app, but then it stops and returns an error code of zero which means its finished...BUT it never st

RE: [DUG]: Best version control system?

2002-11-10 Thread Dave . Jollie
Thanks for the comments. I'm having a play with FreeVCS and FTPVCS to see what they're like. I'll let you know **my opinion** of which is the best. Dave -Original Message- From: Mark Howard [mailto:mhoward@;pslog.co.nz] Sent: Monday, 11 November 2002 14:24 To: Multiple recipients of list

Re: [DUG]: Best version control system?

2002-11-10 Thread Mark Howard
Try http://www.thensle.de/ for FreeVCS. Mark On 11 Nov 2002 at 13:13, [EMAIL PROTECTED] wrote: > I'm trying out CVS but it seems rather clunky, un-intuitive, quirky > and too manual. Is there any freeware product out there which does a > better job and isn't too big a learning curve? Any website

RE: [DUG]: Deletefile('D:\*.*');

2002-11-10 Thread Conor Boyd
Hi Al, Not aware of a built-in function for doing this. Something like this is always a good exercise in a recursive procedure using DeleteFile and RemoveDir... ;-) Enjoy! Conor -Original Message- From: Alistair George [mailto:bigal@;xtra.co.nz] The above does not work as deletefile o

Re: [DUG]: Deletefile('D:\*.*');

2002-11-10 Thread vss
no I dont think that there is. You need to loop thru the files via a TSearchRect. I have some code, so email me priv. and I will email it to you. Jeremy -Original Message- From: Alistair George <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Mon, 11 No

Re: [DUG]: Deletefile('D:\*.*');

2002-11-10 Thread Paul Mckenzie
Can you call a system command eg delete, there use to be deltree which deleted subdirectories... Regards Paul McKenzie Analyst Programmer SMSS ltd. - Original Message - From: "Alistair George" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Monday, No

RE: [DUG]: Best version control system?

2002-11-10 Thread Chris Milham
Hi, I'm in the same boat and I'm corrently giving CVS a go at home for organising docs & source. I run the CVS server on my Debian box and use WinCVS on WinXP. Once you understand what's going on with CVS it all makes sense. I'd recommend you persist ;) There is a difference in paradigm between

[DUG]: Deletefile('D:\*.*');

2002-11-10 Thread Alistair George
Hi All. The above does not work as deletefile only works on single file. Is there a call to delete everything in a directory including folders? I have a procedure to do this but prefer a solid delphi call if at all possible. Thanks, Al+

Re: [DUG]: Check-boxes

2002-11-10 Thread Paul Mckenzie
I can - I just hoped there was a "nice" way to do this... Setting "checked" activating the click event seems not too nice - OnToggle or something would seem better.   Thanks all for the help...   RegardsPaul McKenzieAnalyst ProgrammerSMSS ltd.  - Original Message - From: Conor

[DUG]: Best version control system?

2002-11-10 Thread Dave . Jollie
I'm trying out CVS but it seems rather clunky, un-intuitive, quirky and too manual. Is there any freeware product out there which does a better job and isn't too big a learning curve? Any websites you can suggest? Thanks. Dave Jollie Software Developer BOA IT 09 368 4259 ext 6231 The information

RE: [DUG]: Check-boxes

2002-11-10 Thread Conor Boyd
Possible not the cleanest, but could you not just clear and reset the event handler while changing the state?   Something like:   function ChangeCheckBoxStateWithoutOnClick(Item: TCheckBox; NewState: Boolean); var     OldOnClick: TNotifyEvent; begin     OldOnClick := Item.OnClick;     try

RE: [DUG]: Check-boxes

2002-11-10 Thread Donovan Broad
procedure CheckNoClick( const aCB: TCheckBox; const aCheckIt:Boolean);begin    if aCheckIt then begin    SendMessage(aCB.handle, BM_SETCHECK, Ord(aCheckIt),0);    aCB.State:=cbChecked;    end    else begin    SendMessage(aCB.handle, BM_SETCHECK, Ord(aCheckIt),0);    aCB.St

Re: [DUG]: Check-boxes

2002-11-10 Thread Paul Mckenzie
Thanks - it sets the checked "look", but it doesn't set the checked state. RegardsPaul McKenzieAnalyst ProgrammerSMSS ltd.  - Original Message - From: Allan Vergara To: Multiple recipients of list delphi Sent: Monday, November 11, 2002 12:33 PM Subject: RE: [DU

[DUG]: Tlistbox or what? - button UP

2002-11-10 Thread Alistair George
Hello Stephen, Thanks for advice. My attitude perhaps is like Peter Cooke and Dudley Moore skit 'learning to play Beethoven' (if you are familiar with it). I _expected_ Tlistbox to behave that way, rather than using another component as I am trying to reduce resources in the software. Will stick t

RE: [DUG]: Check-boxes

2002-11-10 Thread Allan Vergara
try   CheckBox1.Perform(BM_SETCHECK, BST_CHECKED, 0); -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Paul MckenzieSent: Monday, 11 November 2002 12:29 PMTo: Multiple recipients of list delphiSubject: [DUG]: Check-boxes Anyone know how

[DUG]: Check-boxes

2002-11-10 Thread Paul Mckenzie
Anyone know how to Set/Unset a check-box without its Click event being triggered... Changing "Checked", or "Status" seemd to call the onClick.   I can do it by creating a new type of check-box - but is there an easy way ?     RegardsPaul McKenzieAnalyst ProgrammerSMSS ltd. 

Re: [DUG]: UTC Time

2002-11-10 Thread Corey Murtagh
- Original Message - From: "Kyley Harris" <[EMAIL PROTECTED]> Sent: Monday, November 11, 2002 11:13 AM Subject: RE: [DUG]: UTC Time > Windows api call. Been to long to remember the func name though. I think you're probably after GetTimeZoneInformation(). It fills a TIME_ZONE_INFORMATION

[DUG]: UTC Time

2002-11-10 Thread David O'Brien
I have a String Time which represents a UTC time. I need to translate this to local time. I can't see where to find the current time offset. Any ideas? Ta, Dave. --- New Zealand Delphi Users group - Delphi List - [EMAIL PR

RE: [DUG]: Tlistbox or what?

2002-11-10 Thread Witherden, Stephen
Dear Alistair You can use a TTreeView with ShowRoot := False Or you could use a TListView with ViewStyle := vsReport There's also something called a TValueListEditor but I have never used that myself. Stephen > -Original Message- > From: Alistair George [mailto:bigal@;xtra.co.nz] > Sen

[DUG]: Editing PSLog Units

2002-11-10 Thread Mark Howard
Woops! Very sorry. Obviously that last post was not meant for the group. Mark --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email

[DUG]: Editing PSLog Units

2002-11-10 Thread Mark Howard
Steve I held off doing any work on PSLog unit FileUn on Thursday and Friday because you had it checked out. It is still (or again?) checked out today. Are you really working on it, or have you just overlooked checking it back in again? Mark