Numerical Recipes Forum  

Go Back   Numerical Recipes Forum > Obsolete Editions Forum > General Computing and Open Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-09-2009, 09:12 AM
MPD78 MPD78 is offline
Registered User
 
Join Date: Dec 2008
Location: Pittsburgh, PA
Posts: 196
How to open a .pdf file from a win32 console application

Hello all,

Can someone show me the correct code to open a .pdf file from a C++ console application?

What I want the program to do is simply open a .pdf file that corresponds to a numerical input.

For example,

Enter a 1 to view ".pdf on how to view a .pdf"

User enters 1 and the .pdf is displayed for the user to read, print, save, etc ...

My attempt so far has been to use the ShellExecute() function but I am not having any luck.

Thanks
Matt
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:31 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.