oracleguy
12-29-2006, 06:56 AM
I am working on a program and I'm trying to execute files from my C++ application. Like run their default action.
Under Windows I am using the shell execute API to do it, e.g.
HINSTANCE rcode;
rcode = ShellExecuteA( NULL, "open", "relnotes.htm", NULL, "", SW_SHOW );
But I can't seem to find out how to do it under Linux. I found execve (http://www.die.net/doc/linux/man/man2/execve.2.html) however that is for other applications or scripts. I'm going for among other things opening .htm files in the default browser.
Anyone have any ideas?
Under Windows I am using the shell execute API to do it, e.g.
HINSTANCE rcode;
rcode = ShellExecuteA( NULL, "open", "relnotes.htm", NULL, "", SW_SHOW );
But I can't seem to find out how to do it under Linux. I found execve (http://www.die.net/doc/linux/man/man2/execve.2.html) however that is for other applications or scripts. I'm going for among other things opening .htm files in the default browser.
Anyone have any ideas?