I can not make references to Visual Basic 6

I can not make references to the PDFCreato 2.0.2
I have not had any probem with versions 1.7.x

Error message:
You can not add a reference to the specified file
C:\Program Files\PDFCreator\PDFCreator.exe

Software:
VisualBasic 6
Windows Vista 32-bit
PDFCreator 2.0.2

Thank You,

Josep

I would be very interested in knowing if VB6 can reference PDFCreator 2 as I would like to move all this code I have inherited to the latest and greatest versions.  If VB6 cannot support latest PDFCreator that is one more argument to retiring VB6.  

Thanks,
~aw

You can know if the version 2 of PDFCreator can be managed with the VB6 ?

Hello,


after playing around a little bit with VB6 on a fresh machine(Win7, 64bit), I discovered some potential pitfalls and maybe a solution to your problem.

The first thing you need to do before starting to use the COM interface of PDFCreator v.2, you have to add a reference to the type library of PDFCreator (.tlb file) and NOT the PDFCreator assembly, if you try to add the assembly, you’ll get a compiler error saying that you can’t add a reference to the specified file.

Now, you have appropriately included the .tlb file, thus you can use the types defined in there. In order to use early binding, you have to create the Queue object as follows:

Dim myQueue As Queue
Set myQueue = CreateObject(“PDFCreatorBeta.JobQueue”)
[…(further processing steps)]   

The above implementation doesn’t provide intellisense on the myQueue object, if you exchange Queue with IQueue, you even get intellisense on your myQueue object. 

Dim myQueue As IQueue 'Now with intellisense
Set myQueue = CreateObject(“PDFCreatorBeta.JobQueue”)
[…(further processing steps)] 

In order to use late binding you have to create the Queue object as follows:

Dim myQueue As Variant
Set myQueue = CreateObject(“PDFCreatorBeta.JobQueue”) 
[…]

Nevertheless, what I couldn’t figure out is, why am I not able to create a queue object from the ProgID. Example:

Dim myQueue As PDFCreatorBeta.JobQueue […]

If anyone knows the answer to that I’d be thankful, if you would post it here.