New Forum | Previous | Next | (P-PDF) Developers
Topic: PDF Win2000 VC++ Automation Problem
Conf: (P-PDF) Developers, Msg: 55563
Date: 5/29/2002 05:13 PM
I have a piece of code that uses Adobe Acrobat 4.05 via automation.
This code works perfectly fine in NT 4.0, but does not work at all under win 2000. The code snip looks like this:
BOOL success = FALSE;
//do some Acrobatics:
success = AfxOleInit();
//kick off the application:
success = FALSE;
////the next line does not work in 2000!!!
success = app.CreateDispatch("AcroExch.App");
The CreateDispatch method returns false, and no application object is created.
The CAcro classes are created with Class Wizard and the acrobat.tlb type library.
Does anyone have any suggenstions to what it might be? Why does it work with NT4 and not with 2000?
Thanks in advance!