Essentially, what I need to do is create a DLL in Delphi 6 that I can 
dynamically load (for maintenance purposes) that displays a form that is Modal 
to the calling form.  The background is that I am having to provide support for 
some individuals that have Adobe Acrobat Reader 6.0 and for some others who 
have Acrobat Reader 7.0.  I have to maintain control to the extent that, once 
the PDF is shown, the user cannot continue working in the primary application 
until the PDF is closed.  (I originally had the display included as part of the 
primary application because everyone was on the same version of Acrobat Reader 
. . . then some of the users updated their Acrobat Readers.)
 
I have created a Testbed Driver (AcrobatViewerTester) to resolve this issue.  
The Testbed Driver is a primary form that identifies the DLL's I create for 
this purpose and adds them to a menu.  Clicking on a menu item then calls the 
dll o display a selected PDF and passing the handle of the calling form. The 
DLL call is to a routine that makes sure the PDF exists and then calls a 
function that creates a form (frmAcro70Viewer in this case) with the calling 
form as the owner, sets up a couple of things on that form, and then tries to 
do a ShowModal on the (frmAcro70Viewer) form .  What I am getting as an error 
is "Project AcrobatViewerTester.exe raise anexception class EOleSystError 
'Coinitialize has not been called'. Process stopped.  Use step or run to 
continue."
 
I figure this has to have been done successfully by someone. 



Ralph D. Wilson II  
[EMAIL PROTECTED]  
[EMAIL PROTECTED]

"Any sufficiently advanced technology is indistinguishable from magic."
A. C. Clark
                
---------------------------------
Yahoo! Mail
 Stay connected, organized, and protected. Take the tour
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to