Print Page | Close Window

COMException problem - what am I missing???

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1954
Printed Date: 22 Jan 26 at 5:45AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: COMException problem - what am I missing???
Posted By: peterlen
Subject: COMException problem - what am I missing???
Date Posted: 13 Sep 11 at 6:55PM
Hello,
 
I have started to look at the Quick PDF Lite (v7.25).  I wrote a test app for creating a PDF with text using Visual Studio 2008 (C#).  Initially, I could not load the QuickPDFLite0725.dll as a Resource.  In the Getting Started document I saw that I needed to run the following (for registering the ActiveX DLL):

regsvr32 "C:\Program Files\Quick PDF Library\Lite\QuickPDFLite0725.dll"

After I did this, I could load the DLL as a resource.  I was then able to use the API to create a PDF fil with text.  As a test, I loaded my test app's files (the executable, QuickPDF DLL, etc) to another Windows XP machine to try to run it.  When I tried to run it, I got the following error:
 
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {......} failed due to the following error: 80040154
 
I am not sure this is because I did not register the ActiveX DLL or not but if so, that makes me wonder how an application using the API can be distributed without every customer machine running the regsvr32 command.
 
Each of the two machines are Windows XP with Visual Studio 2008.  Am I missing a fundamental understanding of how the API needs to be used?
 
Thanks - Peter



Replies:
Posted By: Wheeley
Date Posted: 13 Sep 11 at 10:42PM
An ActiveX must be registered on every machine that tries to use it. This is known behavior in regards to Window's ActiveX. And no you are not missing anything on how the api is used. But remember, the version you are using is free and to use it, it comes with restrictions like most free software. To get what you want, you need to buy a license and then use the DLL version. Then you won't have to register any ActiveX. And for the power of this library, a license is cheap.

Wheeley



Posted By: peterlen
Date Posted: 14 Sep 11 at 12:57AM
Wheeley - Okay, that makes sense.  At least I know the situation now. Thanks for your help!!


Posted By: AndrewC
Date Posted: 14 Sep 11 at 8:34AM
It also helps to register the ActiveX using an Administrator account to prevent similar errors.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk