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
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
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
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
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
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
- 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.
- 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
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
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
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
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
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
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
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
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
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
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+
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
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
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
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
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
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
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
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.
- 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
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
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
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
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
31 matches
Mail list logo