Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help please with ShellAPI 1

Status
Not open for further replies.

delphiman

Programmer
Dec 13, 2001
422
ZA
I have a GUI where I use this final command line in a button event handler.

ShellExecute (Handle, 'open', pChar (strMsg), '', '', SW_SHOW);

Which works fine and opens my MS-Outlook.

When I use the identical code and final command line in the button event handler in another (completely un-related) identical GUI (developed in a completely differect folder) I merely find myself merely looking at the folder.

What am I missing?
 
I should have added these are in two totally seperate applications.
 
hi,

I think it is StrMsg. In the first application is filled with Outlook and in the second one with nothing or a path. So check where StrMsg stands for.

Steph [Bigglasses]
 
Thanks Steph!

In fact I goofed in that I had nothing where "ES" (or "SM" etc.) is was required in the code below. The result being that the procedure below never went anywhere. Thanks to your suggestion I nailed it down! :)

Thanks once again!

if dmDataModule.qrySelStoreProduct.value = 'ES' then
begin
if dmDataModule.qrySelStoreEmail_Type.value = 'EMR' then
begin
strMsg := 'mailto:' + ed_RecipAddress +
'?Subject=' + ed_Subject +
'&Body=';
//Add first line
etc. etc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top