keepingbusy
Programmer
In a recent FAQ I posted some code to assist in sending info to an email using Oulook Express Version 6. No problems, all is working fine.
What I'm not sure about is what actually starts up OE6?
With my code...
Then.......
Then.......
Looking around the forum, I found some examples of how to launch apps, such as: thread184-747645 (Part code) includes:
... posted by mgagnon. I understand this as a file name is shown associated with an app (.pdf Adobe Reader).
My confusion here is what is telling Outlook Express 6 to open in my code when all I see is:
Is it cEMail? Again this doesn't make sense because the command line for OE6 is:
"C:\Program Files\Outlook Express\msimn.exe"
1. Why does it do this?
2. If I were to change my source code and ask it to open up Microsoft Outlook (C:\Program Files\Microsoft Office\Office\outlook.exe) what do I need to do?
Many thanks
Lee.....
Alone we can do so little, together we can do so much
What I'm not sure about is what actually starts up OE6?
With my code...
Code:
LOCAL cEmail, mconv1, more variables....
Then.......
Code:
DECLARE integer ShellExecute IN shell32.dll ;
integer hndWin, string cAction, string cFileName, ;
string cParams, string cDir, integer nShowWin
cEmail = "mailto:"+LOWER(TRIM(mcdxemail))+ ;
"?Subject=Order Request"+ ;
"&Body="+mconv1+chr(10)+chr(10)
Then.......
Code:
ShellExecute(0,"open",cEMail,"","",1)
CLEAR DLLS ShellExecute
Looking around the forum, I found some examples of how to launch apps, such as: thread184-747645 (Part code) includes:
Code:
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
INTEGER hwnd, ;
STRING lpVerb, ;
STRING lpFile, ;
STRING lpParameters, ;
STRING lpDirectory, ;
LONG nShowCmd
=Shellexecute(0,"Open","c:\mypdffile.pdf","","",1)
... posted by mgagnon. I understand this as a file name is shown associated with an app (.pdf Adobe Reader).
My confusion here is what is telling Outlook Express 6 to open in my code when all I see is:
Code:
[b]ShellExecute(0,"open",cEMail,"","",1)[/b]
Is it cEMail? Again this doesn't make sense because the command line for OE6 is:
"C:\Program Files\Outlook Express\msimn.exe"
1. Why does it do this?
2. If I were to change my source code and ask it to open up Microsoft Outlook (C:\Program Files\Microsoft Office\Office\outlook.exe) what do I need to do?
Many thanks
Lee.....
Alone we can do so little, together we can do so much