You can do this using the ShellExecute() function in the Windows SDK.
e.g.:
#include
#include
...
int errorCode = (int)ShellExecute(NULL,NULL,"mailto:sample@sample.com",NULL,NULL,0);
if (32>=errorCode)
{
// didn't work - error processing here
}
You will have to include the SDK import library file SHELL32.LIB in your project.
You can also use the CVI LaunchExecutable function, but it's not as nice and is OS dependent (I think).
In win9x/Me:
LaunchExecutable("start.exe mailto:sample@sample.com");In NT/2000/XP:
LaunchExecutable("cmd.exe /c start mailto:sample@sample.com");('start' is an external command in 9x/Me but a cmd.exe builtin in NT/2000/XP)
HTH,
HAND,
Martin.
--
Martin
Certified CVI Developer