Re: Sending email from a Delphi application



Terry Russell wrote:
//works up to <=464 max parameter length; ( maybe OS /version variable)

Definitely version-dependent.

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.

--
Rob
.


Quantcast