I looked up the installshield KB on this topic and the code is fairly old and not very good (http://support.insta...ticleid=q105947). After fixing it up, I still get warnings from the compiler. Anyone have an updated script example for this?
Thank you,
Daitaku
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Sending E-mails in 6.3
Started by
daitaku
, May 09 2003 16:52
3 replies to this topic
Posted 14 May 2003 - 09:27
prototype HWND Shell32.ShellExecuteA( HWND, BYREF STRING, BYREF STRING, BYREF STRING, BYREF STRING, int);
prototype MyFunction();
function MyFunction()
STRING szOperation, szFileName, szParameters, szDirectory;
begin
szOperation = "open";
szFileName = "mailto:xxxxxxxxxx@xxxxxxxxxxx.com?subject=Pong!";
szParameters = "";
szDirectory = "";
ShellExecuteA(NULL, szOperation, szFileName, szParameters, szDirectory, SW_SHOW );
end;
prototype MyFunction();
function MyFunction()
STRING szOperation, szFileName, szParameters, szDirectory;
begin
szOperation = "open";
szFileName = "mailto:xxxxxxxxxx@xxxxxxxxxxx.com?subject=Pong!";
szParameters = "";
szDirectory = "";
ShellExecuteA(NULL, szOperation, szFileName, szParameters, szDirectory, SW_SHOW );
end;
Posted 14 May 2003 - 12:11
and what's updated in this example?
daitaku: what compiler warnings do you get?
daitaku: what compiler warnings do you get?
Gruß / regards
Thomas
Thomas
Posted 15 May 2003 - 10:15
Compared with the InstallShield example, the updates are that I have added one string value to the definition of "prototype HWND Shell32.ShellExecuteA( HWND, BYREF STRING, BYREF STRING, BYREF STRING, BYREF STRING, int);". In the Installshield example there was only 3 string values which resulted in compilation error. -> ShellExecuteA(NULL, szOperation, szFileName, szParameters, szDirectory, SW_SHOW );
I also changed the string values to BYREF STRING to get rid of compilation warnings.
I also changed the string values to BYREF STRING to get rid of compilation warnings.