Hello. I was wondering whether there is a way to evoke Windows to open a file in its default application via a system() function call. If not, how would I do this in WIN32? Would the code work the same way in Windows 98 and XP? Thanks.
Printable View
Hello. I was wondering whether there is a way to evoke Windows to open a file in its default application via a system() function call. If not, how would I do this in WIN32? Would the code work the same way in Windows 98 and XP? Thanks.
You would use ShellExecute(Ex), and it ought to work the same on 98 and XP, though you should check the docs for that: some flags might only be supported on one of them.
I'm not sure I understand your question, but I would suggest you give the ShellExecute() function a closer look: http://msdn.microsoft.com/library/de...ellexecute.asp
Thanks.