Run-time error '429': ActiveX component can't create object

Hi.

I wrote a program in VB6 already month ago. It includes PDFCreator and it worked in IDE as well as an exe. Same program runs as an exe at the PC of a friend. Now I did some changes. At my PC it still runs as IDE and exe. But at the PC from my friend it crashed with the error mentioned in the title.
There was no change at the PC from my friend and we just replaced the exe. I did not add any new OCX, DLL or anything else. The crash happens exactly at this line:
Set PDFCreator1 = New clsPDFCreator
Anybody any idea?
Much appreciated.

Okay, I get it. The problem was 2 different Versions. PDFCreator Version at the other PC 1.4.3. At mine 1.7.something. I uninstalled my Version, installed the old one, recompiled it and now it works.

BUT: What happens, if somebody installing a newer Version of PDFCreator? It can’t be that I am forced to create a new exe just somebody installs a newer version. Imagine you sell any VB program using PDFCreator and the customer is not allowed to update his PDFCreator. How to solve such an issue?

This has been my experience.  I have to assign the reference in code to the exact same version that the code will execute against in the wild!  unfortunate

Try having the friend run his version of pdfcreator and print something with it. (but NOT by using your EXE)

THEN have them try printing with your EXE, to see if it now works.

Hi,


we have redesigned the COM interface for PDFCreator 2.0 to get rid of this issue for future versions, future releases should now be backwards compatible to version 2.0.

best regards,