Launching Adobe in MFC application.

Hi experts,

I have an MFC application that opens an adobe file when a certain button is pressed.  Currently, this Adobe file is opened with whichever version of Adobe (7, 8, or 9)  installed on the users' PC.  Therefore, the result is not consistent.   I would like to have the MFC application opens the Adobe file using a single version of Adobe regardless of the version installed.  My questions are:  Is this possible? and If it is, which Adobe dll's do I need to include in the application for deployment?  I am thinking of placing the Adobe dll's at the application folder rather than at the System folder since I do not wish to override the current Adobe version.

Many thanks in advance.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

As you have said, the PDF will open in whichever version of Acrobat is installed.  To get it to open in another version, you will have to rely on another version also being installed: this is possible, but I don't think many users will want an older version installed.

If you know an older version is installed, you could just open your document via the command line, eg

<path to acrobat.exe> <path to document>

You can do this via CreateProcess() (

You could not distribute another executable on its own, although you can distribute a whole installer.  So if you want to silently install another version for the duration of your app, you could, but I don't think this is a good idea.  It would be nice if you could run reader in "compatibility" mode, but it does not look like you can.
>>I am thinking of placing the Adobe dll's at the application folder rather than
>>at the System folder

In short: You can't. Please see the Adobe's statement about redistribution, inb - the relevant part is attached below:
ChiliPequinAuthor Commented:
Thanks mrwat99 and jkr very much for your prompt response.  In research for this, I notice that there is a product called Quick pdf libraries.  I am looking into this to see if these can be used to include in the application to view, save, and email pdf file. Thanks again for your help.
If V7 works for you, you might be interested in reading how to host the Adobe Reader ActiveX Control in your app. See ("Adobe ActiveX Control with MFC")
ChiliPequinAuthor Commented:
Thanks jkr,
The site you recommend is very interesting and I will definintely try it sometimes next week.  However, at the moment, I do not launch adobe reader directly from my MFC application.  Rather, I use the ShellExecute command in my MFC application to open a URL which in turns opens the pdf file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Wireless Networking

From novice to tech pro — start learning today.