View Single Post
  #3  
Old 01-05-2001, 10:10 PM
The Smurf The Smurf is offline
Member
 
Join Date: Jan 2001
Posts: 40
Default RE: RE: How to copy a string into a pchar???????

ShellExecute(Application.MainForm.Handle, nil, 'mailto:' + PChar(EmailAddress), '', '', SW_SHOW);

Actually, that bit of code won't work correctly. You need to cast the entire string.

ShellExecute(Application.MainForm.Handle,nil,PChar ('mailto:' + EmailAddress),'','',SW_SHOW);

-- The Smurf.
Reply With Quote