Hi all,

I'm attempting to create a simple install program that will (just) fit
together with an application on a single floppy disk.
The idea is that a client will put the diskette in the drive, select
START/RUN then open A:/Install  and the program will display a directory
list of C:\ , for selection or an Edit box instead. That way I can ensure
that idiot entries will be checked for.

Trouble is when I assign, for instance, 'C:\{directory}' to a string
variable 'PathStg' and call MkDir(PathStg) the directory is created, but
when I later try to copy a file from A:\ by using the construct  -
CopyFile('A:\Program.exe', PathStg); the compiler tells me that there are
incompatible types 'String' and 'Pchar' in the command -  Please, why is
this ?

If I use - CopyFile('A:\Program.exe' , 'C:\DestDir\Program.exe');  then I'm
told 'Not enough actual parameters' -  Why  ?

The Help topic 'Moving, Copying and Renaming Files told me to use
CopyFile(FromFile,ToFile) where these parameters are strings. Where am I
going wrong ?

Using Delphi/V3.

TIA

    Colin





----- Original Message -----
From: Patrick Dunford <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Wednesday, September 27, 2000 2:46 PM
Subject: RE: [DUG]: Application Idle


> Application.OnIdle is not the same. It fires when the app becomes idle.
But
> it does not tell you how long the app has been idle.
>
> However you may be able to implement a timer by polling with
> WaitForInputIdle. Application.OnIdle event is equivalent to calling
> WaitForInputIdle with the parameter value INFINITE.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Rohit Gupta
> > Sent: Wednesday, 27 September 2000 13:12
> > To: Multiple recipients of list delphi
> > Subject: Re: [DUG]: Application Idle
> >
> >
> > IF you havent found it yet... try teh application.onidle event
> >
> > To:             Multiple recipients of list delphi
> > <[EMAIL PROTECTED]>
> > Send reply to:  [EMAIL PROTECTED]
> > From:           "Dedy Darmayanto" <[EMAIL PROTECTED]>
> > Subject:        [DUG]:  Application Idle
> > Date sent:      Mon, 25 Sep 2000 16:05:46 +0700
> >
> > > Hi,
> > >
> > > How to detect Application Idle in Delphi,
> > > I mean that when the user does not use application in 5 minutes,
> > > then the application close
> > >
> > > Dedy,
> > >
> > >
> >
> >
> >
> > Rohit
> >
> > ======================================================================
> > CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
> > PH    (649) 489-2280
> > FX    (649) 489-2290
> > email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
> > ======================================================================
> >
> > ------------------------------------------------------------------
> > ---------
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
> >
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to