Re: Paramstr
From: Peder Hanghøj (peder_at_hanghoej.dk)
Date: 11/19/03
- Next message: Nicholas Sherlock: "Re: Setting 'boot-up time' in BIOS from either DOS/Win9x/NTXP?"
- Previous message: Michael Kintner: "Re: Canada developer looking for remote projects"
- In reply to: Rob Kennedy: "Re: Paramstr"
- Next in thread: J French: "Re: Paramstr"
- Reply: J French: "Re: Paramstr"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 19 Nov 2003 23:51:48 +0100
Thanks, you have solved my problem
Peder
"Rob Kennedy" <.> skrev i en meddelelse
news:vrn4cr21es1n28@corp.supernews.com...
> "Peder Hangh???????????????????????" wrote:
> > I am using Delphi 6
> > I am uding shellexecute in a program to start an other program with 3
> > parameters:
>
> Might I suggest you use CreateProcess instead? ShellExecute is designed
> to figure out the command line automatically by looking in the registry,
> and there is the potential for confusion if what it finds in the
> registry doesn't match what you tell it to use.
>
> > Shellexecute(Handle,pchar('open'),pchar('newprogram.exe'),pchar(param1+'
> > '+param2+' '+param3),Pchar(''),sw_normal)
> > In Newprogram.exe i am using jeg param(1)-param(3) reading the 3
parameters.
> > It works fine, but...
> >
> > On some - only some - windows 98 mashines it does not work.
>
> "It does not work" is a useless description. In what way does it not
> work? Does your program crash? Does ShellExecute return an error code?
> Are the images loaded upside-down? On what sorts of machines does it
> "work"? If you're looking at the difference between Windows 95 and
> Windows NT, the length of the command line may be a factor.
>
> --
> Rob
>
- Next message: Nicholas Sherlock: "Re: Setting 'boot-up time' in BIOS from either DOS/Win9x/NTXP?"
- Previous message: Michael Kintner: "Re: Canada developer looking for remote projects"
- In reply to: Rob Kennedy: "Re: Paramstr"
- Next in thread: J French: "Re: Paramstr"
- Reply: J French: "Re: Paramstr"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|