I need to open PDF files from a C program. So, initially I have this solution:
ShellExecute(GetDesktopWindow(), "open", "c:\somefolder\myFile.pdf", NULL, NULL, SW_SHOWNORMAL);
However, this code has its limitations:
1. It works, but a shell window comes up and closes when opening the PDF file. Is there a way to avoid this? Maybe using another programming language?
2. This is Windows specific - I'd like to be able to do it in Linux as well.
3. What is the advantage of using this to using this one?
Thanks very much for any help!