Re: Sending email from a Delphi application




"Rob Kennedy" <me3@xxxxxxxxxxx> wrote in message
news:4l8u8vFr27tU1@xxxxxxxxxxxxxxxxx
Terry Russell wrote:
//works up to <=464 max parameter length; ( maybe OS /version variable)

Definitely version-dependent.

2026 on xp, which is almost useful



res:=shellexecute(form1.handle,'open',pchar(parameter),nil,nil,SW_SHOWNORMAL);
if res <=32 then raiselastwin32error;

ShellExecute is not documented to set the last-error code. Rather, it
returns the relevant error code directly.

correct, the raise after res <=32 may have misled op

I suppose I used it for convenience in the original, it checked for length
before so should never have got that far
cutnpasteandcrop at 1:44am never works

raise should give the same errorcode



.


Quantcast