On Windows use ShellExecute
with open
command and just pass the path to the PDF file. system will do the rest.
More Related Contents:
- C++ User defined sequence integers without using arrays [closed]
- How to get the maximum number after erasing n digits from the number [closed]
- c++ removing whitespace fails by using iterators
- How to find out if an item is present in a std::vector?
- Is it good practice to NULL a pointer after deleting it?
- Pointer expressions: *ptr++, *++ptr and ++*ptr
- What is the Windows equivalent for en_US.UTF-8 locale?
- What C++ Smart Pointer Implementations are available?
- How to read a complete line from the user using cin?
- How to code a modulo (%) operator in C/C++/Obj-C that handles negative numbers
- How to compile C code with anonymous structs / unions?
- A C++ implementation that detects undefined behavior?
- Remove an array element and shift the remaining ones
- Calculating the Amount of Combinations
- Passing End of Transmission (Ctrl + D) character in Eclipse CDT console
- Capturing a time in milliseconds
- What is the best way to do input validation in C++ with cin?
- execute C++ from String variable
- What is better, adjacency lists or adjacency matrices for graph problems in C++?
- How to initialize `std::function` with a member-function?
- error::make_unique is not a member of ‘std’
- Confusion about pointers and references in C++
- Adding signals/slots (QObject) to QGraphicsItem: performance hit?
- Why does unique_ptr take two template parameters when shared_ptr only takes one?
- Do I need to put constexpr after else-if?
- Why use ++i instead of i++ in cases where the value is not used anywhere else in the statement?
- How to convert a time into epoch time?
- C/C++: casting away volatile considered harmful?
- C++ Win32 keyboard events
- Does the C++ standard specify anything on the representation of floating point numbers?