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.
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.
"If you tell the truth, you don't have to remember anything"
-Mark Twain
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.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
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
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
Thanks.
"If you tell the truth, you don't have to remember anything"
-Mark Twain