DriverInit problems in Developer Version

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
reluscorp
Posts: 4
Joined: Wed Jan 15 2003
Location: Romania
Contact:

DriverInit problems in Developer Version

Post by reluscorp »

Hello,

I upgraded to PDF Converter Version 2.10b (Developer) and I follow all the steps from Common Driver Interface 2.10 but when I try to use the DriverInit method, this fails and I get no error.

Dim printer As New CDIntfEx.CDIntfEx
Dim hPrinter As Long

hPrinter = printer.DriverInit("Consolidate PDF Printer")
If hPrinter = 0 Then
MsgBox printer.GetLastErrorMsg
End If

I tried to use the Visual C++ 6.0 but when I include "CDIntf210.h" I get this error:

error C2733: second C linkage of overloaded function 'SetDefaultPrinterA' not allowed

cdintf210.h(91) : see declaration of 'SetDefaultPrinterA'

Could you please advise,
thank you.

Regards,
Aurelian Georgescu
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

when I try to use the DriverInit method, this fails and I get no error.
Concerning the failing of DriverInit, please check that a printer called "Consolidate PDF Printer" exists on your system and is activated before calling DriverInit.

You can run Install "Consolidate PDF Printer" to install this printer on your system.
Then you can right click on the printer and choose Printing Preferences than click on the square with 3 dots on it to activate the printer using the license to and Activation code you have.
error C2733: second C linkage of overloaded function 'SetDefaultPrinterA' not allowed
Please use SetDefaultPrinter and not SetDefaultPrinterA
Post Reply