C/C++ Open a .pdf file from C++ Win32 Console Application

Click For Summary
A user sought assistance on how to open .pdf and .exe files from a Visual C++ 2008 Express Edition program, aiming to allow users to enter a number corresponding to a specific .pdf file for reading, saving, and printing. After receiving external help, the original poster confirmed their issue was resolved. Another user requested the code or resources that facilitated the solution, expressing a desire to achieve similar functionality but only having success with basic file existence checks. The discussion highlights the need for practical coding solutions in Visual C++ for file handling.
CFDFEAGURU
Messages
781
Reaction score
10
Hello all,

Does anyone know how to open a .pdf file (or a .exe) file from a Visual C++ 2008 express edition program?

What I am trying to do is to have the user enter a number that corresponds to a certain .pdf file and have that .pdf file open for the user to read,save,print, etc ...

Thanks
Matt
 
Technology news on Phys.org
Never mind all,

I received some help from outside the forum and all is well.

Thanks
Matt
 
Matt,

Can you please send me the code that you used or the links of the sites from where you received help, because I'm also trying to do the same but so far have only been successful in searching - that too from the most basic method (the one where you input all files in a .txt file use a string to match and then let the user know whether the file exists or not)

Any help will be really appreciated.

Waiting for your reply

Regards

Zain
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 6 ·
Replies
6
Views
12K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 5 ·
Replies
5
Views
8K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
6K